kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(api): register Gitea routes and webhook endpoint

Tin 3c47c376 17782774

+5
+5
apps/api/src/index.ts
··· 21 21 import discordIntegration from "./discord-integration"; 22 22 import externalLink from "./external-link"; 23 23 import genericWebhookIntegration from "./generic-webhook-integration"; 24 + import giteaIntegration, { handleGiteaWebhookRoute } from "./gitea-integration"; 24 25 import githubIntegration, { 25 26 handleGithubWebhookRoute, 26 27 } from "./github-integration"; ··· 138 139 }); 139 140 140 141 api.post("/github-integration/webhook", handleGithubWebhookRoute); 142 + 143 + api.post("/gitea-integration/webhook/:integrationId", handleGiteaWebhookRoute); 141 144 142 145 const invitationPublicApi = api.get("/invitation/public/:id", async (c) => { 143 146 const { id } = c.req.param(); ··· 398 401 "/github-integration", 399 402 githubIntegration, 400 403 ); 404 + const giteaIntegrationApi = api.route("/gitea-integration", giteaIntegration); 401 405 const genericWebhookIntegrationApi = api.route( 402 406 "/generic-webhook-integration", 403 407 genericWebhookIntegration, ··· 461 465 | typeof notificationApi 462 466 | typeof searchApi 463 467 | typeof githubIntegrationApi 468 + | typeof giteaIntegrationApi 464 469 | typeof genericWebhookIntegrationApi 465 470 | typeof discordIntegrationApi 466 471 | typeof slackIntegrationApi