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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user