renombrado nucleoClient y nucleoActions por whatsappCliente y whatsappActions
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m4s
All checks were successful
Deploy conversation layer / deploy (push) Successful in 2m4s
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user