13 lines
518 B
JavaScript
13 lines
518 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)
|
|
router.get('/request/abitur/:id', requestController.getAbiturRequests)
|
|
|
|
module.exports = router |