mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
refactor: update workspace store definition
This commit is contained in:
@ -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`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user