Compare commits
2 Commits
3da91069e1
...
d15bddf3e1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d15bddf3e1 | ||
![]() |
9ebd82983c |
@ -3,6 +3,7 @@ import { isAuthenticatedSalesCoOrdinator } from "../../middlewares/SalesCoOrdina
|
|||||||
import { getNotification } from "./notificationController.js";
|
import { getNotification } from "./notificationController.js";
|
||||||
import { isAuthenticatedTerritoryManager } from "../../middlewares/TerritoryManagerAuth.js";
|
import { isAuthenticatedTerritoryManager } from "../../middlewares/TerritoryManagerAuth.js";
|
||||||
import { isAuthenticatedUser } from "../../middlewares/auth.js";
|
import { isAuthenticatedUser } from "../../middlewares/auth.js";
|
||||||
|
import { isAuthenticatedRD } from "../../middlewares/rdAuth.js";
|
||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
@ -23,5 +24,6 @@ router
|
|||||||
.get(isAuthenticatedTerritoryManager, getNotification);
|
.get(isAuthenticatedTerritoryManager, getNotification);
|
||||||
|
|
||||||
router.route("/get-notification-pd").get(isAuthenticatedUser, getNotification);
|
router.route("/get-notification-pd").get(isAuthenticatedUser, getNotification);
|
||||||
|
router.route("/get-notification-rd").get(isAuthenticatedRD, getNotification);
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
Loading…
Reference in New Issue
Block a user