This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Biblio/api/routes/borrowRouter.js

14 lines
372 B
JavaScript
Raw Normal View History

'use strict';
const express = require('express')
const router = express.Router()
const borrow = require('../controllers/borrowController');
const requirePermission = require('../../utils/requirePermission');
router.all(requirePermission("borrow_books"));
router.route('/')
.get(borrow.list_all)
.put(borrow.update)
.delete(borrow.delete);
module.exports = router;