refactor: update workspace store definition

This commit is contained in:
Steven
2024-04-11 17:53:00 +08:00
parent 6d842711e2
commit 3e6e56b008
28 changed files with 1805 additions and 755 deletions

View File

@ -1,5 +1,4 @@
import axios from "axios";
import { Resource } from "@/types/proto/api/v2/resource_service";
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || "";
axios.defaults.withCredentials = true;
@ -16,10 +15,6 @@ export function upsertSystemSetting(systemSetting: SystemSetting) {
return axios.post<SystemSetting>("/api/v1/system/setting", systemSetting);
}
export function createResourceWithBlob(formData: FormData) {
return axios.post<Resource>("/api/v1/resource/blob", formData);
}
export function getStorageList() {
return axios.get<ObjectStorage[]>(`/api/v1/storage`);
}