feat: Multi-feature CRM update
- Add team_leader role with appropriate permissions - Add lastSeen timestamp for chat online indicator - Add needsFollowup flag to ucastnici table - Add getTodayCalendarCount endpoint for calendar badge - Add company reminders to calendar data - Enhance company search to include phone and contacts - Update routes to allow team_leader access to kurzy, services, timesheets Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,11 @@ const eventIdSchema = z.object({
|
||||
// Všetky routes vyžadujú autentifikáciu
|
||||
router.use(authenticate);
|
||||
|
||||
/**
|
||||
* GET /api/events/today-count - Získať počet eventov a todos pre dnešok (pre badge v sidebar)
|
||||
*/
|
||||
router.get('/today-count', eventController.getTodayCount);
|
||||
|
||||
/**
|
||||
* GET /api/events - Získať eventy a todos podľa mesiaca (filtrované podľa assigned users)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user