diff --git a/scripts/utils.js b/scripts/utils.js index be988dc..eedb10d 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -110,7 +110,7 @@ export async function requestPVE (path, method, body = null) { content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken"); } - let response = await request(`${PVE}${path}`, content); + let response = await request(`${API}/proxmox${path}`, content); return response; } diff --git a/vars.js.template b/vars.js.template index 67dd051..a481a28 100644 --- a/vars.js.template +++ b/vars.js.template @@ -1,2 +1 @@ -export const PVE = "https://proxmox.mydomain.example/api2/json"; // the proxmox web api export const API = "https://client.mydomain.example/api"; // the proxmox-aas api \ No newline at end of file