12 lines
500 B
JavaScript
12 lines
500 B
JavaScript
const Router = require('express')
|
|
const router = new Router()
|
|
|
|
const examResultController = require('../controllers/examresult.controller')
|
|
|
|
router.post('/examresult', examResultController.createExamResult)
|
|
router.get('/examresult', examResultController.getExamResults)
|
|
router.get('/examresult/:id', examResultController.getOneExamResult)
|
|
router.put('/examresult', examResultController.updateExamResult)
|
|
router.delete('/examresult/:id', examResultController.deleteExamResult)
|
|
|
|
module.exports = router |