import { Router, type IRouter } from 'express';
import { authenticate } from '../middlewares/auth.middleware.js';
import { relaxedLimit } from '../middlewares/rate-limit.middleware.js';
import * as catalogosController from '../controllers/catalogos.controller.js';

const router: IRouter = Router();

router.use(authenticate);
router.use(relaxedLimit);

router.get('/forma-pago', catalogosController.getFormasPago);
router.get('/metodo-pago', catalogosController.getMetodosPago);
router.get('/uso-cfdi', catalogosController.getUsosCfdi);
router.get('/moneda', catalogosController.getMonedas);
router.get('/clave-unidad', catalogosController.getClavesUnidad);
router.get('/clave-prod-serv', catalogosController.searchClaveProdServ);
router.get('/objeto-imp', catalogosController.getObjetosImp);
router.get('/tipo-relacion', catalogosController.getTiposRelacion);
router.get('/exportacion', catalogosController.getExportaciones);

export { router as catalogosRoutes };
