feat(file-upload-settings): Add API endpoint and logic to retrieve settings by entity

This commit is contained in:
ghost2023
2026-06-03 11:52:05 +03:00
parent 36a8002163
commit 9e4e44ee6a
4 changed files with 20 additions and 0 deletions

View File

@@ -42,6 +42,12 @@ export class FileUploadSettingsController {
return this.service.getByCode(code);
}
@Get("by-entity/:entity")
@ApiOperation({ summary: "Get all file upload settings for an entity type (customer, booking, etc.)" })
getByEntity(@Param("entity") entity: string) {
return this.service.getByEntity(entity);
}
@Post()
@ApiOperation({ summary: "Create a new file upload setting" })
create(@Body() dto: CreateFileUploadSettingDto) {