Spaces:
Runtime error
Runtime error
Download src/api/integrations/storage/s3/controllers/s3.controller.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/integrations/storage/s3/controllers/s3.controller.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/api/integrations/storage/s3/controllers/s3.controller.ts
-
curl -L -o s3.controller.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/integrations/storage/s3/controllers/s3.controller.ts
539 Bytes
| import { InstanceDto } from '@api/dto/instance.dto'; | |
| import { MediaDto } from '@api/integrations/storage/s3/dto/media.dto'; | |
| import { S3Service } from '@api/integrations/storage/s3/services/s3.service'; | |
| export class S3Controller { | |
| constructor(private readonly s3Service: S3Service) {} | |
| public async getMedia(instance: InstanceDto, data: MediaDto) { | |
| return this.s3Service.getMedia(instance, data); | |
| } | |
| public async getMediaUrl(instance: InstanceDto, data: MediaDto) { | |
| return this.s3Service.getMediaUrl(instance, data); | |
| } | |
| } | |