From b1a8dba7c5242475d8ebd7c1022a5188af09ae72 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 24 Feb 2023 22:25:36 +0000 Subject: [PATCH] use client api endpont for proxmox requests Signed-off-by: Arthur Lu --- scripts/utils.js | 2 +- vars.js.template | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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