mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-09 20:57:43 +00:00
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
import { Polar as PolarComponent } from "@convex-dev/polar";
|
|
import { httpRouter } from "convex/server";
|
|
import { components, internal } from "./_generated/api";
|
|
|
|
const http = httpRouter();
|
|
|
|
const polarComponent = new PolarComponent(components.polar);
|
|
|
|
polarComponent.registerRoutes(http, {
|
|
path: "/events/polar",
|
|
eventCallback: internal.example.polarEventCallback,
|
|
});
|
|
|
|
export default http;
|