crud: notification error sparepart
This commit is contained in:
23
routes/notification_error_sparepart.route.js
Normal file
23
routes/notification_error_sparepart.route.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const express = require('express');
|
||||
const NotificationErrorSparepartController = require('../controllers/notification_error_sparepart.controller');
|
||||
const verifyToken = require('../middleware/verifyToken');
|
||||
const verifyAccess = require('../middleware/verifyAccess');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
// ===========================
|
||||
// Notification Erro rSparepart Routes
|
||||
// ===========================
|
||||
|
||||
router
|
||||
.route('/')
|
||||
.get(verifyToken.verifyAccessToken, NotificationErrorSparepartController.getAll)
|
||||
.post(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorSparepartController.create);
|
||||
|
||||
router
|
||||
.route('/:id')
|
||||
.get(verifyToken.verifyAccessToken, NotificationErrorSparepartController.getById)
|
||||
.put(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorSparepartController.update)
|
||||
.delete(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorSparepartController.delete);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user