add: add notification
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user