2023-03-31 23:19:54 +04:00
|
|
|
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)
|
2023-04-03 01:00:37 +04:00
|
|
|
router.get('/request/abitur/:id', requestController.getAbiturRequests)
|
2023-03-31 23:19:54 +04:00
|
|
|
|
|
|
|
module.exports = router
|