Added accidents to diary

This commit is contained in:
Torsten Schulz
2025-03-10 16:46:43 +01:00
parent 9442e3683b
commit c294dd7b2a
10 changed files with 2176 additions and 1369 deletions

View File

@@ -0,0 +1,10 @@
import express from 'express';
import { addAccident, getAccidents } from '../controllers/accidentController.js';
import { authenticate } from '../middleware/authMiddleware.js';
const router = express.Router();
router.post('/', authenticate, addAccident);
router.get('/:clubId/:dateId', authenticate, getAccidents);
export default router;