import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import {
  deleteTrainingCancellation,
  getTrainingCancellations,
  upsertTrainingCancellation,
} from '../controllers/trainingCancellationController.js';

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

router.get('/:clubId', getTrainingCancellations);
router.post('/:clubId', upsertTrainingCancellation);
router.delete('/:clubId/:cancellationId', deleteTrainingCancellation);

export default router;
