reorder routes for correctness

This commit is contained in:
Alex Holliday committed 2025-07-21 09:55:49 -07:00
1 parent dae0d6cc42
commit 0c04db3299
17 files changed
+123 -127

No files matched your search

+3 -4
View File
@@ -13,11 +13,11 @@ class NotificationRoutes {
initializeRoutes() {
this.router.use(verifyJWT);
this.router.post("/test", this.notificationController.testNotification);
this.router.post("/test/all", this.notificationController.testAllNotifications);
this.router.post("/", this.notificationController.createNotification);
this.router.post("/test/all", this.notificationController.testAllNotifications);
this.router.post("/test", this.notificationController.testNotification);
this.router.get("/team", this.notificationController.getNotificationsByTeamId);
this.router.delete(
@@ -25,7 +25,6 @@ class NotificationRoutes {
verifyOwnership(Notification, "id"),
this.notificationController.deleteNotification
);
this.router.get("/:id", this.notificationController.getNotificationById);
this.router.put(
"/:id",