Fixed group activities and added collapsing for general settings

This commit is contained in:
Torsten Schulz
2024-11-06 09:20:39 +01:00
parent d451ba494c
commit 5bdc5c8216
6 changed files with 95 additions and 15 deletions

View File

@@ -1,10 +1,13 @@
import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import { addGroup, getGroups } from '../controllers/groupController.js';
import { addGroup, getGroups, changeGroup } from '../controllers/groupController.js';
const router = express.Router();
router.post('/', authenticate, addGroup);
router.get('/:clubId/:dateId', authenticate, getGroups);
router.use(authenticate);
router.post('/', addGroup);
router.get('/:clubId/:dateId', getGroups);
router.put('/:groupId', changeGroup);
export default router;