This commit is contained in:
Matthias Hochmeister
2026-03-16 15:01:09 +01:00
parent 3c72fe627f
commit f3ad989a9e
28 changed files with 794 additions and 52 deletions

View File

@@ -58,6 +58,16 @@ router.delete(
*/
router.get('/groups', authenticate, eventsController.getAvailableGroups.bind(eventsController));
// ---------------------------------------------------------------------------
// Conflict check — must come before /:id
// ---------------------------------------------------------------------------
/**
* GET /api/events/conflicts?from=<ISO>&to=<ISO>&excludeId=<uuid>
* Check for overlapping events in the given time range.
*/
router.get('/conflicts', authenticate, eventsController.checkConflicts.bind(eventsController));
// ---------------------------------------------------------------------------
// Calendar & upcoming — specific routes must come before /:id
// ---------------------------------------------------------------------------