feat: sd backend integration

This commit is contained in:
Timothy J. Baek 2024-02-21 18:12:01 -08:00
parent 7a730c3f0f
commit 733e963c44
11 changed files with 611 additions and 33 deletions

View file

@ -1,9 +1,9 @@
import { WEBUI_API_BASE_URL } from '$lib/constants';
import { WEBUI_BASE_URL } from '$lib/constants';
export const getBackendConfig = async () => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/`, {
const res = await fetch(`${WEBUI_BASE_URL}/api/config`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'