Skip to content

Commit

Permalink
INTERNAL: DestroyUI call type changed to post (#883)
Browse files Browse the repository at this point in the history
seemed more appropriate because state on the server is changed and nothing is returned
  • Loading branch information
JindrichSusen committed Sep 5, 2022
1 parent 7d99d00 commit 1740e2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Origam.Server/Controller/UIServiceController.cs
Expand Up @@ -125,7 +125,7 @@ public IActionResult InitUI([FromBody]UIRequest request)
parentSession: null,
basicUIService: sessionObjects.UIService)));
}
[HttpGet("[action]/{sessionFormIdentifier:guid}")]
[HttpPost("[action]")]
public IActionResult DestroyUI(Guid sessionFormIdentifier)
{
return RunWithErrorHandler(() =>
Expand Down
2 changes: 1 addition & 1 deletion frontend-html/src/model/entities/OrigamAPI.ts
Expand Up @@ -161,7 +161,7 @@ export class OrigamAPI implements IApi {
}

async destroyUI(data: { FormSessionId: string }) {
return (await this.axiosInstance.get(`/UIService/DestroyUI/${data.FormSessionId}`)).data;
return (await this.axiosInstance.post(`/UIService/DestroyUI`, data)).data;
}

async getEntities(query: {
Expand Down

0 comments on commit 1740e2e

Please sign in to comment.