mejoras varias en frontend, separacion de intent y state, pick de articulos
This commit is contained in:
5
index.js
5
index.js
@@ -12,6 +12,7 @@ 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";
|
||||
import { makeDeleteConversation, makeDeleteUser, makeListUsers, makeRetryLast } from "./src/controllers/admin.js";
|
||||
|
||||
async function configureUndiciDispatcher() {
|
||||
// Node 18+ usa undici debajo de fetch. Esto suele arreglar timeouts “fantasma” por keep-alive/pooling.
|
||||
@@ -77,8 +78,12 @@ app.post("/sim/send", makeSimSend());
|
||||
|
||||
app.get("/conversations", makeGetConversations(() => TENANT_ID));
|
||||
app.get("/conversations/state", makeGetConversationState(() => TENANT_ID));
|
||||
app.delete("/conversations/:chat_id", makeDeleteConversation(() => TENANT_ID));
|
||||
app.post("/conversations/:chat_id/retry-last", makeRetryLast(() => TENANT_ID));
|
||||
app.get("/messages", makeListMessages(() => TENANT_ID));
|
||||
app.get("/products", makeSearchProducts(() => TENANT_ID));
|
||||
app.get("/users", makeListUsers(() => TENANT_ID));
|
||||
app.delete("/users/:chat_id", makeDeleteUser(() => TENANT_ID));
|
||||
|
||||
app.get("/runs", makeListRuns(() => TENANT_ID));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user