change routee
This commit is contained in:
1 parent
2dc0d1faa6
commit
bd7bdf5867
16 files changed
+47
-41
No files matched your search
@@ -15,7 +15,7 @@
|
||||
|
||||
/** Sign in and store the token pair. */
|
||||
async function login(loginValue, password) {
|
||||
const pair = await Api.post("/v1/admin/login", {
|
||||
const pair = await Api.post("/api/v1/admin/login", {
|
||||
login: loginValue,
|
||||
password: password,
|
||||
});
|
||||
@@ -37,7 +37,7 @@
|
||||
const initialEl = document.getElementById("profile-initial");
|
||||
if (!nameEl) return;
|
||||
try {
|
||||
const profile = await Api.get("/v1/admin/get-profile");
|
||||
const profile = await Api.get("/api/v1/admin/get-profile");
|
||||
const fullName = (profile && profile.fullName) || "Admin";
|
||||
nameEl.textContent = fullName;
|
||||
if (avatarEl && profile && profile.avatar) {
|
||||
|
||||
Reference in new issue
Block a user