Spaces:
Runtime error
Runtime error
Download src/api/controllers/template.controller.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/controllers/template.controller.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api/src/api/controllers/template.controller.ts
-
curl -L -o template.controller.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/controllers/template.controller.ts
518 Bytes
| import { InstanceDto } from '@api/dto/instance.dto'; | |
| import { TemplateDto } from '@api/dto/template.dto'; | |
| import { TemplateService } from '@api/services/template.service'; | |
| export class TemplateController { | |
| constructor(private readonly templateService: TemplateService) {} | |
| public async createTemplate(instance: InstanceDto, data: TemplateDto) { | |
| return this.templateService.create(instance, data); | |
| } | |
| public async findTemplate(instance: InstanceDto) { | |
| return this.templateService.find(instance); | |
| } | |
| } | |