Add legacy endpoint for dashboard widget: Implemented /dashboard-widget route to provide data expected by the Dashboard-Falukant widget, ensuring compatibility with frontend requirements.

This commit is contained in:
Torsten Schulz (local)
2026-02-09 13:00:59 +01:00
parent c779be2897
commit 83455f1e83

View File

@@ -37,6 +37,11 @@ router.post('/director/settings', falukantController.setSetting);
router.get('/director/:branchId', falukantController.getDirectorForBranch); router.get('/director/:branchId', falukantController.getDirectorForBranch);
router.get('/directors', falukantController.getAllDirectors); router.get('/directors', falukantController.getAllDirectors);
router.post('/directors', falukantController.updateDirector); 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);
router.post('/family/acceptmarriageproposal', falukantController.acceptMarriageProposal); router.post('/family/acceptmarriageproposal', falukantController.acceptMarriageProposal);
router.post('/family/cancel-wooing', falukantController.cancelWooing); router.post('/family/cancel-wooing', falukantController.cancelWooing);
router.post('/family/set-heir', falukantController.setHeir); router.post('/family/set-heir', falukantController.setHeir);