const express = require('express');
const router = express.Router();
const epidemicActivityController = require('../controllers/epidemicActivityController');
const authMiddleware = require('../middleware/auth');

// 暂时注释掉认证中间件用于测试
// router.use(authMiddleware);

// 防疫活动管理路由
router.get('/', epidemicActivityController.getEpidemicActivities);
router.get('/:id', epidemicActivityController.getEpidemicActivityById);
router.post('/', epidemicActivityController.createEpidemicActivity);
router.put('/:id', epidemicActivityController.updateEpidemicActivity);
router.delete('/:id', epidemicActivityController.deleteEpidemicActivity);
router.patch('/:id/status', epidemicActivityController.toggleActivityStatus);

module.exports = router;
