const express = require('express');
const router = express.Router();
const { requireAuth, requirePage } = require('../middleware/auth');
const ctrl = require('../controllers/vacationDashboardController');

router.use(requireAuth);

router.get('/', requirePage('support_vacation_dashboard'), ctrl.getDashboard);
router.get('/yearly-overview', requirePage('support_vacation_dashboard'), ctrl.getYearlyOverview);
router.get('/monthly-detail', requirePage('support_vacation_dashboard'), ctrl.getMonthlyDetail);

module.exports = router;
