File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ You can also provide callbacks for webhook events:
129129
130130``` ts
131131polar .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.
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { polar } from "./example";
44const http = httpRouter ( ) ;
55
66polar . 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 ) ;
You can’t perform that action at this time.
0 commit comments