update client with new user config endpoint paths
This commit is contained in:
parent
4d86104e43
commit
3b23a9043c
@ -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")}`;
|
||||||
|
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user