mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-26 16:50:04 +00:00
FEAT: update auth guard to patch method
This commit is contained in:
+1
-1
@@ -3237,7 +3237,7 @@
|
||||
"info": {
|
||||
"title": "Maestro - feature/update-pipeline-cron",
|
||||
"description": "Documentation for Maestro gateway",
|
||||
"version": "25.11.2022 - 11:37",
|
||||
"version": "25.11.2022 - 12:7",
|
||||
"contact": {}
|
||||
},
|
||||
"tags": [],
|
||||
|
||||
@@ -46,6 +46,10 @@ import { GrpcToHttpExceptionFilter } from 'src/error/grpc-to-http-exception.filt
|
||||
action = 'UPDATE';
|
||||
break;
|
||||
|
||||
case 'PATCH':
|
||||
action = 'UPDATE';
|
||||
break;
|
||||
|
||||
default:
|
||||
action = req.method;
|
||||
}
|
||||
@@ -209,7 +213,7 @@ export class PipelinesController {
|
||||
return response;
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
@Patch('/:id')
|
||||
async updateByPatch(
|
||||
@Headers('Dadosfera-Lang') language,
|
||||
@Body() updatePipelineDto,
|
||||
|
||||
Reference in New Issue
Block a user