Spaces:
Runtime error
Runtime error
Download src/api/controllers/settings.controller.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/controllers/settings.controller.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api/src/api/controllers/settings.controller.ts
-
curl -L -o settings.controller.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/controllers/settings.controller.ts
549 Bytes
| import { InstanceDto } from '@api/dto/instance.dto'; | |
| import { SettingsDto } from '@api/dto/settings.dto'; | |
| import { SettingsService } from '@api/services/settings.service'; | |
| export class SettingsController { | |
| constructor(private readonly settingsService: SettingsService) {} | |
| public async createSettings(instance: InstanceDto, data: SettingsDto) { | |
| return this.settingsService.create(instance, data); | |
| } | |
| public async findSettings(instance: InstanceDto) { | |
| const settings = this.settingsService.find(instance); | |
| return settings; | |
| } | |
| } | |