import { httpRouter } from "convex/server"; import { authComponent, createAuth } from "./auth"; import { githubWebhook, puterWebhook } from "./gitWebhooks"; const http = httpRouter(); authComponent.registerRoutes(http, createAuth, { cors: true }); http.route({ handler: githubWebhook, method: "POST", path: "/api/git/webhooks/github", }); http.route({ handler: puterWebhook, method: "POST", path: "/api/git/webhooks/puter", }); export default http;