import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import {
    getTrainingTimes,
    createTrainingTime,
    updateTrainingTime,
    deleteTrainingTime
} from '../controllers/trainingTimeController.js';

const router = express.Router();
router.use(authenticate);

router.get('/:clubId', getTrainingTimes);
router.post('/:clubId', createTrainingTime);
router.put('/:clubId/:timeId', updateTrainingTime);
router.delete('/:clubId/:timeId', deleteTrainingTime);

export default router;

