separated in modules

This commit is contained in:
Lucas Tettamanti
2026-01-15 22:45:33 -03:00
parent eedd16afdb
commit ea62385e3d
41 changed files with 1116 additions and 2918 deletions

View File

@@ -0,0 +1,13 @@
import express from "express";
import { makeEvolutionWebhook } from "../controllers/evolution.js";
/**
* Integración Evolution (webhook).
* Mantiene exactamente el mismo path que existía en `index.js`.
*/
export function createEvolutionRouter() {
const router = express.Router();
router.post("/webhook/evolution", makeEvolutionWebhook());
return router;
}