update config.js to api route changes
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
7409398e11
commit
0c05140bfe
@ -317,7 +317,7 @@ async function handleDiskDelete() {
|
|||||||
vmid: vmid,
|
vmid: vmid,
|
||||||
disk: this.dataset.disk
|
disk: this.dataset.disk
|
||||||
};
|
};
|
||||||
let result = await requestAPI("/instance/disk/delete", "POST", body);
|
let result = await requestAPI("/instance/disk/delete", "DELETE", body);
|
||||||
if (result.status === 200) {
|
if (result.status === 200) {
|
||||||
await getConfig();
|
await getConfig();
|
||||||
populateDisk();
|
populateDisk();
|
||||||
@ -506,7 +506,7 @@ async function handleNetworkConfig() {
|
|||||||
netid: netID,
|
netid: netID,
|
||||||
rate: form.get("rate")
|
rate: form.get("rate")
|
||||||
}
|
}
|
||||||
let result = await requestAPI("/instance/network", "POST", body);
|
let result = await requestAPI("/instance/network/modify", "POST", body);
|
||||||
if (result.status === 200) {
|
if (result.status === 200) {
|
||||||
await getConfig();
|
await getConfig();
|
||||||
populateNetworks();
|
populateNetworks();
|
||||||
|
Loading…
Reference in New Issue
Block a user