feat: POST method voor class geimplementeerd
This commit is contained in:
parent
a1aaf342d7
commit
79422ab854
8 changed files with 85 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
import express from 'express';
|
||||
import {
|
||||
createClassHandler,
|
||||
getAllClassesHandler,
|
||||
getClassHandler,
|
||||
getClassStudentsHandler,
|
||||
|
@ -12,6 +13,8 @@ const router = express.Router();
|
|||
// Root endpoint used to search objects
|
||||
router.get('/', getAllClassesHandler);
|
||||
|
||||
router.post('/', createClassHandler);
|
||||
|
||||
// Information about an class with id 'id'
|
||||
router.get('/:id', getClassHandler);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue