Added notifcation controller and route.
This commit is contained in:
1 parent
e9bcf66b29
commit
64c5aa9bb0
2 files changed
+84
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user