renombrado nucleoClient y nucleoActions por whatsappCliente y whatsappActions
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m4s

This commit is contained in:
2025-06-06 23:06:59 -06:00
parent 781b4e809f
commit 0671cc9445
4 changed files with 73 additions and 73 deletions

View File

@@ -1,6 +1,6 @@
import express from 'express';
import dotenv from 'dotenv';
import { registerConversationRoutes } from './routes/conversations';
import { registerConversationRoutes } from './routes/conversationActions';
import {
registerWebhookRoutes,
clearWebhooks,
@@ -8,7 +8,7 @@ import {
waitForGateway,
WebhookConfig,
} from './webhook';
import nucleoActionsRouter from './routes/nucleoActions'; // New import
import whatsappActionsRouter from './routes/whatsappActions'; // New import
dotenv.config();
@@ -52,8 +52,8 @@ const config: WebhookConfig = {
registerConversationRoutes(app, openWaUrl);
registerWebhookRoutes(app, config, openWaUrl, agentUrl);
// Register new nucleoActions routes
app.use('/nucleo', nucleoActionsRouter); // New line
// Register new whatsappActions routes
app.use('/whatsapp', whatsappActionsRouter); // New line
app.listen(port, async () => {
console.log(`WhatsApp router listening on ${port}`);