implementando openAI y busqueda de productos en woo
This commit is contained in:
2
index.js
2
index.js
@@ -11,6 +11,7 @@ import { makeSimSend } from "./src/controllers/sim.js";
|
||||
import { makeEvolutionWebhook } from "./src/controllers/evolution.js";
|
||||
import { makeGetConversationState } from "./src/controllers/conversationState.js";
|
||||
import { makeListMessages } from "./src/controllers/messages.js";
|
||||
import { makeSearchProducts } from "./src/controllers/products.js";
|
||||
|
||||
async function configureUndiciDispatcher() {
|
||||
// Node 18+ usa undici debajo de fetch. Esto suele arreglar timeouts “fantasma” por keep-alive/pooling.
|
||||
@@ -77,6 +78,7 @@ app.post("/sim/send", makeSimSend());
|
||||
app.get("/conversations", makeGetConversations(() => TENANT_ID));
|
||||
app.get("/conversations/state", makeGetConversationState(() => TENANT_ID));
|
||||
app.get("/messages", makeListMessages(() => TENANT_ID));
|
||||
app.get("/products", makeSearchProducts(() => TENANT_ID));
|
||||
|
||||
app.get("/runs", makeListRuns(() => TENANT_ID));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user