Spaces:
Runtime error
Runtime error
Download src/api/controllers/call.controller.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/controllers/call.controller.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/api/controllers/call.controller.ts
-
curl -L -o call.controller.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/controllers/call.controller.ts
429 Bytes
| import { OfferCallDto } from '@api/dto/call.dto'; | |
| import { InstanceDto } from '@api/dto/instance.dto'; | |
| import { WAMonitoringService } from '@api/services/monitor.service'; | |
| export class CallController { | |
| constructor(private readonly waMonitor: WAMonitoringService) {} | |
| public async offerCall({ instanceName }: InstanceDto, data: OfferCallDto) { | |
| return await this.waMonitor.waInstances[instanceName].offerCall(data); | |
| } | |
| } | |