This commit is contained in:
Alex Holliday committed 2025-06-01 11:55:16 -07:00
1 parent c02ba84864
commit c119df1553
7 files changed
+198 -193

No files matched your search

+16 -22
View File
@@ -2,29 +2,23 @@ import { Router } from "express";
import { verifyJWT } from "../middleware/verifyJWT.js";
class NotificationRoutes {
constructor(notificationController) {
this.router = Router();
this.notificationController = notificationController;
this.initializeRoutes();
}
constructor(notificationController) {
this.router = Router();
this.notificationController = notificationController;
this.initializeRoutes();
}
initializeRoutes() {
this.router.use(verifyJWT);
this.router.post(
"/trigger",
this.notificationController.triggerNotification
);
this.router.post(
"/test-webhook",
this.notificationController.testWebhook
);
}
initializeRoutes() {
this.router.use(verifyJWT);
getRouter() {
return this.router;
}
this.router.post("/trigger", this.notificationController.triggerNotification);
this.router.post("/test-webhook", this.notificationController.testWebhook);
}
getRouter() {
return this.router;
}
}
export default NotificationRoutes;
export default NotificationRoutes;