DBLabs/abitur_list_client/routes/specialization.routes.js

13 lines
661 B
JavaScript

const Router = require('express')
const router = new Router()
//const specializationController = require('../controllers/specialization.controller')
const specializationController = require(process.env.dbPath + 'specialization.controller')
router.post('/specialization', specializationController.createSpecialization)
router.get('/specialization', specializationController.getSpecializations)
router.get('/specialization/:id', specializationController.getOneSpecialization)
router.put('/specialization', specializationController.updateSpecialization)
router.delete('/specialization/:id', specializationController.deleteSpecialization)
module.exports = router