DBLabs/abitur_list_client/routes/request.routes.js

12 lines
447 B
JavaScript
Raw Normal View History

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