update client with new user config endpoint paths
This commit is contained in:
parent
24c1ac00a5
commit
b8a293837b
@ -25,7 +25,7 @@ async function init () {
|
||||
if (cookie === "") {
|
||||
goToPage("login.html");
|
||||
}
|
||||
const resources = await requestAPI("/user/resources");
|
||||
const resources = await requestAPI("/user/dynamic/resources");
|
||||
const instances = await requestAPI("/user/config/cluster");
|
||||
const nodes = await requestAPI("/user/config/nodes");
|
||||
document.querySelector("#username").innerText = `Username: ${getCookie("username")}`;
|
||||
|
@ -146,7 +146,7 @@ export function getCookie (cname) {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@ -244,7 +244,7 @@ export function getURIData () {
|
||||
}
|
||||
|
||||
export async function deleteAllCookies () {
|
||||
await requestAPI("/ticket", "DELETE");
|
||||
await requestAPI("/auth/ticket", "DELETE");
|
||||
}
|
||||
|
||||
export function setTitleAndHeader () {
|
||||
|
Loading…
Reference in New Issue
Block a user