v0.0.1
This commit is contained in:
13
api/routes/history.entrance.routes.js
Normal file
13
api/routes/history.entrance.routes.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const express = require('express');
|
||||
const router = express.Router({ mergeParams: true });
|
||||
const HistoryEntranceController = require('../controllers/history.entrance.controller');
|
||||
const authenticate = require("../middleware/auth");
|
||||
|
||||
router
|
||||
.route('/')
|
||||
.get(authenticate, HistoryEntranceController.getHistoryEntrance)
|
||||
.post(authenticate, HistoryEntranceController.createHistoryEntrance)
|
||||
.put(authenticate, HistoryEntranceController.updateHistoryEntrance)
|
||||
.delete(authenticate, HistoryEntranceController.deleteHistoryEntrance);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user