mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-06 04:20:58 +00:00
deprecate checkoutApi, avoid breaking
This commit is contained in:
@@ -64,7 +64,7 @@ export const {
|
||||
|
||||
// Cancels the current subscription.
|
||||
cancelCurrentSubscription,
|
||||
} = polar.api();
|
||||
} = polar.checkoutApi();
|
||||
|
||||
// In a real app you'll set up authentication, we just use a
|
||||
// fake user for the example.
|
||||
|
||||
@@ -301,6 +301,10 @@ export class Polar<
|
||||
}),
|
||||
};
|
||||
}
|
||||
// Deprecated: use api() instead
|
||||
checkoutApi() {
|
||||
return this.api();
|
||||
}
|
||||
registerRoutes(
|
||||
http: HttpRouter,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user