Files
Checkmate/server/routes/notificationRoute.js
T
2025-04-20 11:29:53 -07:00

30 lines
708 B
JavaScript
Executable File

import { Router } from "express";
import { verifyJWT } from "../middleware/verifyJWT.js";
class NotificationRoutes {
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
);
}
getRouter() {
return this.router;
}
}
export default NotificationRoutes;