const router = require('express').Router();
const ctrl = require('../controllers/settingsController');
const { authenticate } = require('../middleware/auth');
const { authorize } = require('../middleware/rbac');

router.use(authenticate);
router.get('/', ctrl.get);
router.put('/', authorize('owner'), ctrl.update);

module.exports = router;
