Added notifcation controller and route.

This commit is contained in:
Skorpios committed 2025-02-08 17:07:14 -08:00
1 parent e9bcf66b29
commit 64c5aa9bb0
2 files changed
+84

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import express from 'express';
class NotificationRoutes {
constructor(notificationController) {
this.notificationController = notificationController;
this.router = express.Router();
this.initializeRoutes();
}
initializeRoutes() {
this.router.post('/trigger', this.notificationController.triggerNotification.bind(this.notificationController));
}
getRouter() {
return this.router;
}
}
export default NotificationRoutes;