This commit is contained in:
Timothy J. Baek
2024-10-01 21:32:59 -07:00
parent c2732a0990
commit 1b7d363d32
11 changed files with 182 additions and 28 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { WEBUI_API_BASE_URL } from '$lib/constants';
export const createNewProject = async (token: string, id: string, name: string) => {
export const createNewProject = async (token: string, name: string, description: string) => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/projects/create`, {
@@ -11,8 +11,8 @@ export const createNewProject = async (token: string, id: string, name: string)
authorization: `Bearer ${token}`
},
body: JSON.stringify({
id: id,
name: name
name: name,
description: description
})
})
.then(async (res) => {