update client with new user config endpoint paths

This commit is contained in:
Arthur Lu 2023-07-05 23:16:20 +00:00
parent 4d86104e43
commit 3b23a9043c
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ async function init () {
if (cookie === "") { if (cookie === "") {
goToPage("login.html"); goToPage("login.html");
} }
const resources = await requestAPI("/user/resources"); const resources = await requestAPI("/user/dynamic/resources");
const instances = await requestAPI("/user/config/cluster"); const instances = await requestAPI("/user/config/cluster");
const nodes = await requestAPI("/user/config/nodes"); const nodes = await requestAPI("/user/config/nodes");
document.querySelector("#username").innerText = `Username: ${getCookie("username")}`; document.querySelector("#username").innerText = `Username: ${getCookie("username")}`;

View File

@ -146,7 +146,7 @@ export function getCookie (cname) {
} }
export async function requestTicket (username, password, realm) { export async function requestTicket (username, password, realm) {
const response = await requestAPI("/ticket", "POST", { username: `${username}@${realm}`, password }, false); const response = await requestAPI("/auth/ticket", "POST", { username: `${username}@${realm}`, password }, false);
return response; return response;
} }
@ -244,7 +244,7 @@ export function getURIData () {
} }
export async function deleteAllCookies () { export async function deleteAllCookies () {
await requestAPI("/ticket", "DELETE"); await requestAPI("/auth/ticket", "DELETE");
} }
export function setTitleAndHeader () { export function setTitleAndHeader () {