import express from 'express';
import clubArchiveController from '../controllers/clubArchiveController.js';
import { authenticate } from '../middleware/authMiddleware.js';
import { authorize } from '../middleware/authorizationMiddleware.js';

const router = express.Router();

router.use(authenticate);
router.get('/:clubId', authorize('archive', 'read'), clubArchiveController.getClubArchive);

export default router;
