mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-10 20:57:46 +00:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { Polar } from "@convex-dev/polar";
|
|
import { httpRouter } from "convex/server";
|
|
import { components } from "./_generated/api";
|
|
|
|
const http = httpRouter();
|
|
|
|
const polar = new Polar(components.polar);
|
|
|
|
polar.registerRoutes(http, {
|
|
// Optional custom path, default is "/events/polar"
|
|
path: "/events/polar",
|
|
});
|
|
|
|
export default http;
|