From bb41fd848c2ea903f374e457b9c9ee96d67ca4fb Mon Sep 17 00:00:00 2001 From: Adriaan Jacquet Date: Wed, 26 Feb 2025 14:18:48 +0100 Subject: [PATCH] feat: commentaar toegevoegd voor de verschillende endpoints in /teacher --- backend/src/routes/teacher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/teacher.ts b/backend/src/routes/teacher.ts index a004ce8c..851da986 100644 --- a/backend/src/routes/teacher.ts +++ b/backend/src/routes/teacher.ts @@ -1,7 +1,7 @@ import express from 'express' const router = express.Router(); -// information about an question with id 'id' +// information about a teacher router.get('/:id/', (req, res) => { res.json({ id: req.params.id, @@ -16,6 +16,7 @@ router.get('/:id/', (req, res) => { }); }) +// the questions students asked a teacher router.get('/:id/questions', (req, res) => { res.json({ questions: [ @@ -24,6 +25,7 @@ router.get('/:id/questions', (req, res) => { }); }); +// invitations to other classes a teacher received router.get('/:id/invitations', (req, res) => { res.json({ invitations: [ @@ -32,6 +34,7 @@ router.get('/:id/invitations', (req, res) => { }); }); +// a list with ids of classes a teacher is in router.get('/:id/classes', (req, res) => { res.json({ classes: [