14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
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;
|
|
}
|
|
|