mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00

- Added `wavoipToken` field to `Setting` model in both MySQL and PostgreSQL schemas. - Updated `package.json` and `package-lock.json` to include `mime-types` and `socket.io-client` dependencies. - Introduced `BaileysController` and `BaileysRouter` for handling WhatsApp interactions. - Refactored media type handling to use `mime-types` instead of `mime` across various services. - Updated DTOs and validation schemas to accommodate the new `wavoipToken` field. - Implemented voice call functionalities using the Wavoip service in the Baileys integration. - Enhanced event handling in the WebSocket controller to support new features.
18 lines
564 B
TypeScript
18 lines
564 B
TypeScript
import { Router } from 'express';
|
|
|
|
import { EvolutionRouter } from './evolution/evolution.router';
|
|
import { MetaRouter } from './meta/meta.router';
|
|
import { BaileysRouter } from './whatsapp/baileys.router';
|
|
|
|
export class ChannelRouter {
|
|
public readonly router: Router;
|
|
|
|
constructor(configService: any, ...guards: any[]) {
|
|
this.router = Router();
|
|
|
|
this.router.use('/', new EvolutionRouter(configService).router);
|
|
this.router.use('/', new MetaRouter(configService).router);
|
|
this.router.use('/baileys', new BaileysRouter(...guards).router);
|
|
}
|
|
}
|