DBLabs/abitur_list_client/routes/examresult.routes.js

16 lines
835 B
JavaScript
Raw Normal View History

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')
router.post('/examresult', examResultController.createExamResult)
router.post('/examresult/manual', examResultController.createExamResultWithId)
router.get('/examresult', examResultController.getExamResults)
router.get('/examresult/:id', examResultController.getOneExamResult)
router.put('/examresult', examResultController.updateExamResult)
router.delete('/examresult', examResultController.deleteExamResult)
router.get('/examresult/abitur/:id', examResultController.getAbiturExamResults)
router.get('/examresult/avgBySpec/:id', examResultController.getAverageResultBySpecialization)
module.exports = router