Add holidays routes to backend and frontend; implement holiday associations and update UI components for admin holidays management

This commit is contained in:
Torsten Schulz (local)
2025-10-17 22:35:31 +02:00
parent 6a0b23e694
commit 67ddf812cd
15 changed files with 1058 additions and 2 deletions

View File

@@ -86,6 +86,10 @@ app.use('/api/workdays', authenticateToken, workdaysRouter);
const calendarRouter = require('./routes/calendar');
app.use('/api/calendar', authenticateToken, calendarRouter);
// Holidays routes (geschützt, nur Admin) - MIT ID-Hashing
const holidaysRouter = require('./routes/holidays');
app.use('/api/holidays', authenticateToken, holidaysRouter);
// Error handling middleware
app.use((err, req, res, next) => {
console.error(err.stack);