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,12 @@
import { handleEvolutionWebhook } from "../handlers/evolution.js";
export const makeEvolutionWebhook = () => async (req, res) => {
try {
const result = await handleEvolutionWebhook(req.body || {});
res.status(result.status).json(result.payload);
} catch (err) {
console.error(err);
res.status(200).json({ ok: true, error: "internal_error" });
}
};