From 0c05140bfe0a824980da93f551a97890569cc7c0 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 8 Jun 2023 23:33:55 +0000 Subject: [PATCH] update config.js to api route changes Signed-off-by: Arthur Lu --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 5d44d3b..a9f86d8 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -317,7 +317,7 @@ async function handleDiskDelete() { vmid: vmid, 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) { await getConfig(); populateDisk(); @@ -506,7 +506,7 @@ async function handleNetworkConfig() { netid: netID, 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) { await getConfig(); populateNetworks();