2023-03-31 18:56:39 +04:00
|
|
|
const Router = require('express')
|
|
|
|
const router = new Router()
|
|
|
|
|
2023-03-31 23:19:54 +04:00
|
|
|
const abiturController = require('../controllers/abitur.controller')
|
2023-03-31 18:56:39 +04:00
|
|
|
|
|
|
|
router.post('/abitur', abiturController.createAbitur)
|
|
|
|
router.get('/abitur', abiturController.getAbiturs)
|
|
|
|
router.get('/abitur/:id', abiturController.getOneAbitur)
|
|
|
|
router.put('/abitur', abiturController.updateAbitur)
|
|
|
|
router.delete('/abitur/:id', abiturController.deleteAbitur)
|
|
|
|
|
|
|
|
module.exports = router
|