import { Router } from 'express';
import { get, update } from '../controllers/settingsController.js';
import { protect } from '../middlewares/auth.js';
import { authorize } from '../middlewares/authorize.js';
import { ACTIONS } from '../utils/permissions.js';

const router = Router();

router.get('/', protect, get);
router.put('/', protect, authorize(ACTIONS.SETTINGS_WRITE), update);

export default router;
