feature(dashboard): add integrations and notifications
This commit is contained in:
@@ -27,6 +27,16 @@ const liveRouter: FastifyPluginCallback = (fastify, opts, done) => {
|
||||
{ websocket: true },
|
||||
controller.wsProjectEvents,
|
||||
);
|
||||
fastify.get(
|
||||
'/notifications/:projectId',
|
||||
{ websocket: true },
|
||||
controller.wsProjectNotifications,
|
||||
);
|
||||
fastify.get(
|
||||
'/integrations/slack',
|
||||
{ websocket: true },
|
||||
controller.wsIntegrationsSlack,
|
||||
);
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
@@ -7,6 +7,11 @@ const webhookRouter: FastifyPluginCallback = (fastify, opts, done) => {
|
||||
url: '/clerk',
|
||||
handler: controller.clerkWebhook,
|
||||
});
|
||||
fastify.route({
|
||||
method: 'GET',
|
||||
url: '/slack',
|
||||
handler: controller.slackWebhook,
|
||||
});
|
||||
done();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user