DBLabs/abitur_list_client/routes/abitur.routes.js

12 lines
432 B
JavaScript
Raw Normal View History

const Router = require('express')
const router = new Router()
const abiturController = require('../controllers/abitur.controller')
router.post('/abitur', abiturController.createAbitur)
router.get('/abitur', abiturController.getAbiturs)
router.get('/abitur/:id', abiturController.getOneAbitur)
router.put('/abitur', abiturController.updateAbitur)
router.delete('/abitur/:id', abiturController.deleteAbitur)
module.exports = router