feat: update deleteSetting endpoint to use path parameter for key
This commit is contained in:
@ -4,6 +4,7 @@ import {
|
||||
Delete,
|
||||
Get,
|
||||
Inject,
|
||||
Param,
|
||||
Post,
|
||||
Put,
|
||||
Req,
|
||||
@ -65,12 +66,12 @@ export class ProjectController {
|
||||
);
|
||||
}
|
||||
|
||||
@Delete("settings/delete")
|
||||
@Delete("settings/delete/:key")
|
||||
deleteSetting(
|
||||
@Body() body: { key: string },
|
||||
@Param("key") key: string,
|
||||
@Req() req: Request & { apiToken: { id: string } }
|
||||
) {
|
||||
return this.projectSettingService.delete(req.apiToken.id, body.key);
|
||||
return this.projectSettingService.delete(req.apiToken.id, key);
|
||||
}
|
||||
|
||||
@Get("settings")
|
||||
|
||||
Reference in New Issue
Block a user