From 0f10a39f91720eb96158b7189e093e48ad00cbbf Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 9 Jun 2025 10:25:06 +0800 Subject: [PATCH] add notification routes --- server/routes/notificationRoute.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/routes/notificationRoute.js b/server/routes/notificationRoute.js index 2c0bbf5b7..fe6b1c2dd 100755 --- a/server/routes/notificationRoute.js +++ b/server/routes/notificationRoute.js @@ -14,6 +14,15 @@ class NotificationRoutes { this.router.post("/trigger", this.notificationController.triggerNotification); this.router.post("/test-webhook", this.notificationController.testWebhook); + + this.router.post("/", this.notificationController.createNotification); + + this.router.get( + "/team/:teamId", + this.notificationController.getNotificationsByTeamId + ); + + this.router.delete("/:id", this.notificationController.deleteNotification); } getRouter() {