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'];
|
||||
authComponent.authFetch(configImportEndpoint,
|
||||
{
|
||||
method: 'POST',
|
||||
method: 'PUT',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
body: JSON.stringify(config)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue