From 55881bdcc0b21b9f7ec5f395d7dfb6f443f42cf8 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 11 Jul 2023 22:07:08 +0000 Subject: [PATCH] update sync endpoint --- scripts/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/index.js b/scripts/index.js index 6b7b31b..ff708d5 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -14,14 +14,14 @@ async function init () { goToPage("login.html"); } - currentHash = (await requestAPI("/cluster/statushash")).data; + currentHash = (await requestAPI("/sync/hash")).data; await populateInstances(); const addInstanceBtn = document.querySelector("#instance-add"); addInstanceBtn.addEventListener("click", handleInstanceAdd); window.setInterval(async () => { - const newHash = (await requestAPI("/cluster/statushash")).data; + const newHash = (await requestAPI("/sync/hash")).data; if (currentHash !== newHash) { currentHash = newHash; populateInstances(); @@ -30,7 +30,7 @@ async function init () { } async function populateInstances () { - const newHash = (await requestAPI("/cluster/statushash")).data; + const newHash = (await requestAPI("/sync/hash")).data; currentHash = newHash; const resources = await requestPVE("/cluster/resources", "GET"); const instanceContainer = document.getElementById("instance-container");