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

fix: api route issue over https
This commit is contained in:
Timothy Jaeryang Baek 2023-12-28 12:59:58 -05:00 committed by GitHub
commit 46f131cc7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
uvicorn main:app --port 8080 --host 0.0.0.0 --reload uvicorn main:app --port 8080 --host 0.0.0.0 --forwarded-allow-ips '*' --reload

View file

@ -1 +1 @@
uvicorn main:app --host 0.0.0.0 --port 8080 uvicorn main:app --host 0.0.0.0 --port 8080 --forwarded-allow-ips '*'

View file

@ -3,7 +3,7 @@ import { WEBUI_API_BASE_URL } from '$lib/constants';
export const getSessionUser = async (token: string) => { export const getSessionUser = async (token: string) => {
let error = null; let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/auths`, { const res = await fetch(`${WEBUI_API_BASE_URL}/auths/`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View file

@ -34,7 +34,7 @@ export const updateUserRole = async (token: string, id: string, role: string) =>
export const getUsers = async (token: string) => { export const getUsers = async (token: string) => {
let error = null; let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/users`, { const res = await fetch(`${WEBUI_API_BASE_URL}/users/`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',