get space model by id

This commit is contained in:
hannathkadher
2025-01-08 21:34:59 +04:00
parent 5e31529f8b
commit 4744b0844c
3 changed files with 33 additions and 0 deletions

View File

@ -66,6 +66,19 @@ export class SpaceModelController {
return await this.spaceModelService.list(projectParam, query);
}
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('SPACE_MODEL_VIEW')
@ApiOperation({
summary: ControllerRoute.SPACE_MODEL.ACTIONS.LIST_SPACE_MODEL_SUMMARY,
description:
ControllerRoute.SPACE_MODEL.ACTIONS.LIST_SPACE_MODEL_DESCRIPTION,
})
@Get(':spaceModelUuid')
async get(@Param() param: SpaceModelParam): Promise<BaseResponseDto> {
return await this.spaceModelService.findOne(param);
}
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('SPACE_MODEL_UPDATE')