DBLabs/abitur_list_client/routes/examresult.routes.js

16 lines
835 B
JavaScript

const Router = require('express')
const router = new Router()
const examResultController = require('../controllers/examresult.controller')
//const examResultController = require('../mongo/controllers/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