MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / webhookRouter

Function webhookRouter

apps/api/src/routes/webhook.router.ts:4–18  ·  view source on GitHub ↗
(fastify)

Source from the content-addressed store, hash-verified

2import type { FastifyPluginCallback } from 'fastify';
3
4const webhookRouter: FastifyPluginCallback = async (fastify) => {
5 fastify.route({
6 method: 'GET',
7 url: '/slack',
8 handler: controller.slackWebhook,
9 });
10 fastify.route({
11 method: 'POST',
12 url: '/polar',
13 handler: controller.polarWebhook,
14 config: {
15 rawBody: true,
16 },
17 });
18};
19
20export default webhookRouter;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected