Add holidays routes to backend and frontend; implement holiday associations and update UI components for admin holidays management
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user