excel preview & file handling

This commit is contained in:
richardtekula
2025-11-24 10:18:28 +01:00
parent dfcf8056f3
commit 7fd6b9e742
12 changed files with 1336 additions and 18 deletions

View File

@@ -47,6 +47,18 @@ router.get(
timeTrackingController.getMonthlyTimeEntries
);
// Generate monthly timesheet (XLSX)
router.post(
'/month/:year/:month/generate',
validateParams(
z.object({
year: z.string().regex(/^\d{4}$/, 'Rok musí byť 4-ciferné číslo'),
month: z.string().regex(/^(0?[1-9]|1[0-2])$/, 'Mesiac musí byť číslo 1-12'),
})
),
timeTrackingController.generateMonthlyTimesheet
);
// Get monthly statistics
router.get(
'/stats/monthly/:year/:month',