updated spaceUuid

This commit is contained in:
hannathkadher
2024-10-30 23:50:52 +04:00
parent 689d42cf1e
commit f1c07360cb
4 changed files with 23 additions and 15 deletions
+5 -4
View File
@@ -60,7 +60,7 @@ export class SceneController {
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Delete('tap-to-run/:unitUuid/:sceneId')
@Delete('tap-to-run/:unitUuid/:sceneUuid')
async deleteTapToRunScene(@Param() param: DeleteSceneParamDto) {
await this.sceneService.deleteTapToRunScene(param);
return {
@@ -70,7 +70,7 @@ export class SceneController {
}
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Post('tap-to-run/trigger/:sceneId')
@Post('tap-to-run/trigger/:sceneUuid')
async triggerTapToRunScene(@Param() param: SceneParamDto) {
await this.sceneService.triggerTapToRunScene(param.sceneUuid);
return {
@@ -82,7 +82,7 @@ export class SceneController {
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Get('tap-to-run/details/:sceneId')
@Get('tap-to-run/details/:sceneUuid')
async getTapToRunSceneDetails(@Param() param: SceneParamDto) {
const tapToRunScenes = await this.sceneService.getTapToRunSceneDetails(
param.sceneUuid,
@@ -92,7 +92,7 @@ export class SceneController {
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Put('tap-to-run/:sceneId')
@Put('tap-to-run/:sceneUuid')
async updateTapToRunScene(
@Body() updateSceneTapToRunDto: UpdateSceneTapToRunDto,
@Param() param: SceneParamDto,
@@ -108,6 +108,7 @@ export class SceneController {
data: tapToRunScene,
};
}
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Post('icon')