Unverified Commit 46f131cc authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #309 from ollama-webui/https-fix

fix: api route issue over https
parents 72524272 bdc13137
uvicorn main:app --port 8080 --host 0.0.0.0 --reload
\ No newline at end of file
uvicorn main:app --port 8080 --host 0.0.0.0 --forwarded-allow-ips '*' --reload
\ No newline at end of file
uvicorn main:app --host 0.0.0.0 --port 8080
\ No newline at end of file
uvicorn main:app --host 0.0.0.0 --port 8080 --forwarded-allow-ips '*'
\ No newline at end of file
......@@ -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',
......
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment