feat: status teacher invite

This commit is contained in:
Gabriellvl 2025-04-14 16:50:54 +02:00
parent 783c91b2e3
commit f3d2b3313c
16 changed files with 184 additions and 79 deletions

View file

@ -1,12 +1,21 @@
import express from 'express';
import { createInvitationHandler, deleteInvitationForHandler, getAllInvitationsHandler } from '../controllers/teacher-invitations';
import {
createInvitationHandler,
deleteInvitationHandler,
getAllInvitationsHandler, getInvitationHandler,
updateInvitationHandler
} from '../controllers/teacher-invitations';
const router = express.Router({ mergeParams: true });
router.get('/:username', getAllInvitationsHandler);
router.get('/:sender/:receiver/:classId', getInvitationHandler);
router.post('/', createInvitationHandler);
router.delete('/:sender/:receiver/:classId', deleteInvitationForHandler);
router.put('/', updateInvitationHandler);
router.delete('/:sender/:receiver/:classId', deleteInvitationHandler);
export default router;