Add timefix and vacation routes to backend; update frontend for new routes and page titles

This commit is contained in:
Torsten Schulz (local)
2025-10-17 15:54:30 +02:00
parent e95bb4cb76
commit b65a13d815
16 changed files with 1913 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
const express = require('express');
const router = express.Router();
const VacationController = require('../controllers/VacationController');
const unhashRequestIds = require('../middleware/unhashRequest');
// Hinweis: Authentifizierung wird bereits in index.js durch authenticateToken Middleware gehandhabt
// GET /api/vacation - Liste aller Urlaubseinträge
router.get('/', VacationController.getAllVacations);
// POST /api/vacation - Neuen Urlaubseintrag erstellen
router.post('/', VacationController.createVacation);
// DELETE /api/vacation/:id - Urlaubseintrag löschen
router.delete('/:id', unhashRequestIds, VacationController.deleteVacation);
module.exports = router;