feat: commentaar toegevoegd voor de verschillende endpoints in /teacher

This commit is contained in:
Adriaan Jacquet 2025-02-26 14:18:48 +01:00
parent e0c756fb36
commit bb41fd848c

View file

@ -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: [