12 lines
447 B
JavaScript
12 lines
447 B
JavaScript
|
const Router = require('express')
|
||
|
const router = new Router()
|
||
|
|
||
|
const requestController = require('../controllers/request.controller')
|
||
|
|
||
|
router.post('/request', requestController.createRequest)
|
||
|
router.get('/request', requestController.getRequests)
|
||
|
router.get('/request/:id', requestController.getRequests)
|
||
|
router.put('/request', requestController.updateRequest)
|
||
|
router.delete('/request/:id', requestController.deleteRequest)
|
||
|
|
||
|
module.exports = router
|