import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import { authorize } from '../middleware/authorizationMiddleware.js';
import { getConfig, saveConfig, deleteConfig } from '../controllers/memberTransferConfigController.js';

const router = express.Router();

router.get('/:id', authenticate, authorize('members', 'read'), getConfig);
router.post('/:id', authenticate, authorize('members', 'write'), saveConfig);
router.put('/:id', authenticate, authorize('members', 'write'), saveConfig);
router.delete('/:id', authenticate, authorize('members', 'write'), deleteConfig);

export default router;

