Skip to content

Commit 446d9e3

Browse files
committed
fix events endpoint path in docs
1 parent f85f091 commit 446d9e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ You can also provide callbacks for webhook events:
129129

130130
```ts
131131
polar.registerRoutes(http, {
132-
// Optional custom path, default is "/events/polar"
133-
path: "/events/polar",
132+
// Optional custom path, default is "/polar/events"
133+
path: "/polar/events",
134134
// Optional callbacks for webhook events
135135
onSubscriptionUpdated: async (ctx, event) => {
136136
// Handle subscription updates, like cancellations.

example/convex/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { polar } from "./example";
44
const http = httpRouter();
55

66
polar.registerRoutes(http, {
7-
// Optional custom path, default is "/events/polar"
8-
path: "/events/polar",
7+
// Optional custom path, default is "/polar/events"
8+
path: "/polar/events",
99
// Optional callback for when a subscription is updated
1010
onSubscriptionUpdated: async (ctx, event) => {
1111
console.log("Subscription updated", event);

0 commit comments

Comments
 (0)