mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
- Introduced Evoai and EvoaiSetting models in both MySQL and PostgreSQL schemas. - Implemented EvoaiController and EvoaiService for managing EvoAI bots. - Created EvoaiRouter for handling API requests related to EvoAI. - Added DTOs and validation schemas for EvoAI integration. - Updated server module and chatbot controller to include EvoAI functionality. - Configured environment settings for EvoAI integration.
28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
import { ChatwootRouter } from '@api/integrations/chatbot/chatwoot/routes/chatwoot.router';
|
|
import { DifyRouter } from '@api/integrations/chatbot/dify/routes/dify.router';
|
|
import { OpenaiRouter } from '@api/integrations/chatbot/openai/routes/openai.router';
|
|
import { TypebotRouter } from '@api/integrations/chatbot/typebot/routes/typebot.router';
|
|
import { Router } from 'express';
|
|
|
|
import { EvoaiRouter } from './evoai/routes/evoai.router';
|
|
import { EvolutionBotRouter } from './evolutionBot/routes/evolutionBot.router';
|
|
import { FlowiseRouter } from './flowise/routes/flowise.router';
|
|
import { N8nRouter } from './n8n/routes/n8n.router';
|
|
|
|
export class ChatbotRouter {
|
|
public readonly router: Router;
|
|
|
|
constructor(...guards: any[]) {
|
|
this.router = Router();
|
|
|
|
this.router.use('/evolutionBot', new EvolutionBotRouter(...guards).router);
|
|
this.router.use('/chatwoot', new ChatwootRouter(...guards).router);
|
|
this.router.use('/typebot', new TypebotRouter(...guards).router);
|
|
this.router.use('/openai', new OpenaiRouter(...guards).router);
|
|
this.router.use('/dify', new DifyRouter(...guards).router);
|
|
this.router.use('/flowise', new FlowiseRouter(...guards).router);
|
|
this.router.use('/n8n', new N8nRouter(...guards).router);
|
|
this.router.use('/evoai', new EvoaiRouter(...guards).router);
|
|
}
|
|
}
|