added Mercado Pago integration with new payment handling functions and updated app routing

This commit is contained in:
Lucas Tettamanti
2026-01-15 13:06:37 -03:00
parent 29fa2d127e
commit eedd16afdb
13 changed files with 1652 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import { fileURLToPath } from "url";
import { createSimulatorRouter } from "./routes/simulator.js";
import { createEvolutionRouter } from "./routes/evolution.js";
import { createMercadoPagoRouter } from "./routes/mercadoPago.js";
export function createApp({ tenantId }) {
const app = express();
@@ -21,6 +22,7 @@ export function createApp({ tenantId }) {
// --- Integraciones / UI ---
app.use(createSimulatorRouter({ tenantId }));
app.use(createEvolutionRouter());
app.use("/payments/meli", createMercadoPagoRouter());
// Home (UI)
app.get("/", (req, res) => {