use client api endpont for proxmox requests

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-02-24 22:25:36 +00:00
parent a7a00043ae
commit 6866b4e8a0
2 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,7 @@ export async function requestPVE (path, method, body = null) {
content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken"); content.headers.CSRFPreventionToken = getCookie("CSRFPreventionToken");
} }
let response = await request(`${PVE}${path}`, content); let response = await request(`${API}/proxmox${path}`, content);
return response; return response;
} }

View File

@ -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 export const API = "https://client.mydomain.example/api"; // the proxmox-aas api