feat: POST method voor class geimplementeerd

This commit is contained in:
Adriaan Jacquet 2025-03-13 15:11:29 +01:00
parent a1aaf342d7
commit 79422ab854
8 changed files with 85 additions and 8 deletions

View file

@ -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);