mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 06:00:55 +00:00
feat(file-upload-settings): Add API endpoint and logic to retrieve settings by entity
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user