forked from p15670423/monkey
UI: Change POST to PUT in /api/agent-configuration requests
This commit is contained in:
parent
cb62246948
commit
b4c9f0df9e
|
@ -97,7 +97,7 @@ const ConfigImportModal = (props: Props) => {
|
||||||
delete config['advanced'];
|
delete config['advanced'];
|
||||||
authComponent.authFetch(configImportEndpoint,
|
authComponent.authFetch(configImportEndpoint,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'PUT',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: JSON.stringify(config)
|
body: JSON.stringify(config)
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,7 +276,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
return (
|
return (
|
||||||
this.authFetch(CONFIG_URL,
|
this.authFetch(CONFIG_URL,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'PUT',
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: JSON.stringify(config)
|
body: JSON.stringify(config)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue