Merge pull request #315 from SyncrowIOT/bugfix/make-endpoint-restful-for-get-endpoint

making get one automation endpoint RESTful
This commit is contained in:
hannathkadher
2025-03-14 12:29:15 +04:00
committed by GitHub

View File

@ -6,6 +6,7 @@ import {
Get,
HttpStatus,
Param,
Patch,
Post,
Put,
UseGuards,
@ -58,7 +59,7 @@ export class AutomationController {
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('AUTOMATION_VIEW')
@Get('details/:automationUuid')
@Get(':automationUuid')
@ApiOperation({
summary: ControllerRoute.AUTOMATION.ACTIONS.GET_AUTOMATION_DETAILS_SUMMARY,
description:
@ -114,7 +115,7 @@ export class AutomationController {
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('AUTOMATION_CONTROL')
@Put('status/:automationUuid')
@Patch(':automationUuid')
@ApiOperation({
summary:
ControllerRoute.AUTOMATION.ACTIONS.UPDATE_AUTOMATION_STATUS_SUMMARY,