UI: Change POST to PUT in /api/agent-configuration requests

This commit is contained in:
Shreya Malviya 2022-08-03 17:41:07 +05:30
parent cb62246948
commit b4c9f0df9e
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ const ConfigImportModal = (props: Props) => {
delete config['advanced'];
authComponent.authFetch(configImportEndpoint,
{
method: 'POST',
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(config)
}

View File

@ -276,7 +276,7 @@ class ConfigurePageComponent extends AuthComponent {
return (
this.authFetch(CONFIG_URL,
{
method: 'POST',
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(config)
})