Spaces:
Runtime error
Runtime error
Download src/api/integrations/channel/channel.router.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/integrations/channel/channel.router.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api/src/api/integrations/channel/channel.router.ts
-
curl -L -o channel.router.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/integrations/channel/channel.router.ts
564 Bytes
| 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); | |
| } | |
| } | |