feat(webhooks): add signature-verified GitHub webhook route

This commit is contained in:
Gabriel Brown
2026-07-11 14:18:55 -04:00
parent 68dc7bb4ee
commit f1dbf8cd50
4 changed files with 322 additions and 0 deletions
+7
View File
@@ -1,9 +1,16 @@
import { httpRouter } from 'convex/server';
import { auth } from './auth';
import { handleGithubWebhook } from './githubWebhooks';
const http = httpRouter();
auth.addHttpRoutes(http);
http.route({
path: '/webhooks/github',
method: 'POST',
handler: handleGithubWebhook,
});
export default http;