const express = require('express');
const router = express.Router();
const verifyToken = require('../middlewares/verifyToken');
const {
  getAllSchedules,
  getScheduleById,
  createSchedule,
  updateSchedule,
  deleteSchedule,
  sendReminder
} = require('../controllers/auditSchedulesController');

router.get('/', getAllSchedules);
router.get('/:id', getScheduleById);
router.post('/', verifyToken, createSchedule);
router.put('/:id', verifyToken, updateSchedule);
router.delete('/:id', verifyToken, deleteSchedule);
router.post('/:id/send-reminder', verifyToken, sendReminder);

module.exports = router;
