diff --git a/src/lib/apis/auths/index.ts b/src/lib/apis/auths/index.ts index 41c397f9b..56a4a7a6d 100644 --- a/src/lib/apis/auths/index.ts +++ b/src/lib/apis/auths/index.ts @@ -3,7 +3,7 @@ import { WEBUI_API_BASE_URL } from '$lib/constants'; export const getSessionUser = async (token: string) => { let error = null; - const res = await fetch(`${WEBUI_API_BASE_URL}/auths`, { + const res = await fetch(`${WEBUI_API_BASE_URL}/auths/`, { method: 'GET', headers: { 'Content-Type': 'application/json', diff --git a/src/lib/apis/users/index.ts b/src/lib/apis/users/index.ts index 5939d39df..b1f9e5d9f 100644 --- a/src/lib/apis/users/index.ts +++ b/src/lib/apis/users/index.ts @@ -34,7 +34,7 @@ export const updateUserRole = async (token: string, id: string, role: string) => export const getUsers = async (token: string) => { let error = null; - const res = await fetch(`${WEBUI_API_BASE_URL}/users`, { + const res = await fetch(`${WEBUI_API_BASE_URL}/users/`, { method: 'GET', headers: { 'Content-Type': 'application/json',