/**
 * Vacation Settings Routes
 *
 * 연차 계산 규칙 설정
 */

const express = require('express');
const router = express.Router();
const vsc = require('../controllers/vacationSettingsController');
const { requireAuth, requireAdminOrPermission } = require('../middleware/auth');

router.get('/', requireAuth, vsc.getSettings);
router.put('/', requireAdminOrPermission('tkuser.vacation_settings'), vsc.updateSettings);

module.exports = router;
