(fastify)
| 2 | import type { FastifyPluginCallback } from 'fastify'; |
| 3 | |
| 4 | const 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 | |
| 20 | export default webhookRouter; |
nothing calls this directly
no outgoing calls
no test coverage detected