feat: teacher invitation databank api verbinding aangemaakt, bug in data repo waar teacher invitation repo niet juist werd teruggegeven gefixt

This commit is contained in:
Adriaan Jacquet 2025-03-08 20:16:57 +01:00
parent cfd0cce2df
commit baf43e91de
6 changed files with 92 additions and 11 deletions

View file

@ -1,5 +1,5 @@
import express from 'express'
import { getAllClassesHandler, getClassHandler, getClassStudentsHandler } from '../controllers/classes';
import { getAllClassesHandler, getClassHandler, getClassStudentsHandler, getTeacherInvitationsHandler } from '../controllers/classes';
import assignmentRouter from './assignment.js';
const router = express.Router();
@ -10,13 +10,7 @@ router.get('/', getAllClassesHandler);
// information about an class with id 'id'
router.get('/:id', getClassHandler);
router.get('/:id/invitations', (req, res) => {
res.json({
invitations: [
'0'
],
});
})
router.get('/:id/teacher-invitations', getTeacherInvitationsHandler);
router.get('/:id/students', getClassStudentsHandler);