DBLabs/abitur_list_client/routes/abitur.routes.js

12 lines
433 B
JavaScript

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