import { Router } from 'express';
import { ConfigController } from '../controllers/ConfigController';
import { requireTraceContext } from '../../core/guards/trace-context.guard';

const router = Router();

router.get('/', ConfigController.getAll);
router.get('/:key', ConfigController.getByKey);
router.put('/:key', requireTraceContext, ConfigController.update);

export default router;
