mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2025-12-23 19:30:17 +00:00
25 lines
565 B
JavaScript
Executable File
25 lines
565 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;
|