diff --git a/apps/consumers/src/clients/slack.client.ts b/apps/consumers/src/clients/slack.client.ts index 09db973e..824d3871 100644 --- a/apps/consumers/src/clients/slack.client.ts +++ b/apps/consumers/src/clients/slack.client.ts @@ -75,6 +75,16 @@ export class SlackClient implements SlackClientInterface { signingSecret, endpoints: '/slack/events', processBeforeResponse: true, + customRoutes: [ + { + path: '/health', + method: ['GET'], + handler: (_req, res) => { + res.writeHead(200, { 'Content-Type': 'application/json' }); + res.end(JSON.stringify({ status: 'ok' })); + }, + }, + ], }), installationStore, authorize: async (source) => { @@ -343,4 +353,4 @@ class InMemorySessionStorage implements SlackSessionStorage { has(userId: string): boolean { return this.sessions.has(userId); } -} \ No newline at end of file +}