2023-03-31 23:19:54 +04:00
|
|
|
const Router = require('express')
|
|
|
|
const router = new Router()
|
|
|
|
|
2023-05-14 15:26:22 +04:00
|
|
|
//const examResultController = require('../controllers/examresult.controller')
|
|
|
|
const examResultController = require(process.env.dbPath + 'examresult.controller')
|
2023-03-31 23:19:54 +04:00
|
|
|
|
|
|
|
router.post('/examresult', examResultController.createExamResult)
|
2023-04-29 14:20:44 +04:00
|
|
|
router.post('/examresult/manual', examResultController.createExamResultWithId)
|
2023-03-31 23:19:54 +04:00
|
|
|
router.get('/examresult', examResultController.getExamResults)
|
|
|
|
router.get('/examresult/:id', examResultController.getOneExamResult)
|
|
|
|
router.put('/examresult', examResultController.updateExamResult)
|
2023-05-14 01:50:44 +04:00
|
|
|
router.delete('/examresult', examResultController.deleteExamResult)
|
2023-04-03 01:00:37 +04:00
|
|
|
router.get('/examresult/abitur/:id', examResultController.getAbiturExamResults)
|
2023-04-29 14:20:44 +04:00
|
|
|
router.get('/examresult/avgBySpec/:id', examResultController.getAverageResultBySpecialization)
|
2023-03-31 23:19:54 +04:00
|
|
|
|
|
|
|
module.exports = router
|