Add dashboard widget endpoint: Implemented getDashboardWidget method in FalukantService and updated router to provide compact user data for the dashboard widget, ensuring frontend compatibility.

This commit is contained in:
Torsten Schulz (local)
2026-02-09 15:05:17 +01:00
parent 83455f1e83
commit c8d8254fc1
3 changed files with 59 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ router.get('/directors', falukantController.getAllDirectors);
router.post('/directors', falukantController.updateDirector);
// Legacy endpoint (wurde in einem Refactor entfernt, wird aber von WidgetTypes/Frontend erwartet)
// Liefert die Daten, die im Dashboard-Falukant-Widget angezeigt werden.
router.get('/dashboard-widget', falukantController.getInfo);
// Liefert eine schlanke, frontend-kompatible Widget-Antwort (ohne hashedIds).
router.get('/dashboard-widget', falukantController.getDashboardWidget);
router.post('/family/acceptmarriageproposal', falukantController.acceptMarriageProposal);
router.post('/family/cancel-wooing', falukantController.cancelWooing);