2023-03-31 18:56:39 +04:00
|
|
|
const Router = require('express')
|
|
|
|
const router = new Router()
|
|
|
|
|
2023-05-14 15:26:22 +04:00
|
|
|
//const abiturController = require('../controllers/abitur.controller')
|
|
|
|
const abiturController = require(process.env.dbPath + 'abitur.controller')
|
2023-03-31 18:56:39 +04:00
|
|
|
|
|
|
|
router.post('/abitur', abiturController.createAbitur)
|
2023-04-29 14:20:44 +04:00
|
|
|
router.post('/abitur/manual', abiturController.createAbiturWithId)
|
2023-03-31 18:56:39 +04:00
|
|
|
router.get('/abitur', abiturController.getAbiturs)
|
|
|
|
router.get('/abitur/:id', abiturController.getOneAbitur)
|
2023-04-29 14:20:44 +04:00
|
|
|
router.post('/abitur/auth/', abiturController.authAbitur)
|
2023-03-31 18:56:39 +04:00
|
|
|
router.put('/abitur', abiturController.updateAbitur)
|
|
|
|
router.delete('/abitur/:id', abiturController.deleteAbitur)
|
2023-04-29 14:20:44 +04:00
|
|
|
router.delete('/abitur', abiturController.deleteAll)
|
2023-03-31 18:56:39 +04:00
|
|
|
|
|
|
|
module.exports = router
|