add: add notification

This commit is contained in:
2025-12-09 16:04:32 +07:00
parent d063478fc2
commit fb3061e0d1
5 changed files with 69 additions and 48 deletions

View File

@@ -7,10 +7,14 @@ const router = express.Router();
router
.route('/')
.get(verifyToken.verifyAccessToken, NotificationErrorController.getAll)
.get(verifyToken.verifyAccessToken,verifyAccess(), NotificationErrorController.getAll)
router
.route('/')
.post(verifyToken.verifyAccessToken,verifyAccess(), NotificationErrorController.create)
router
.route('/:id')
.get(verifyToken.verifyAccessToken, NotificationErrorController.getById)
.get(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorController.getById)
module.exports = router;