DBLabs/abitur_list_client/routes/specialization.routes.js

12 lines
568 B
JavaScript

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