refractoring & add timesheet service
This commit is contained in:
@@ -49,6 +49,7 @@ router.post(
|
||||
validateBody(z.object({
|
||||
year: z.string().regex(/^\d{4}$/, 'Rok musí byť 4-miestne číslo'),
|
||||
month: z.string().regex(/^([1-9]|1[0-2])$/, 'Mesiac musí byť číslo od 1 do 12'),
|
||||
userId: z.string().uuid().optional(), // Optional: admin can upload for other users
|
||||
})),
|
||||
timesheetController.uploadTimesheet
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user