mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
refactor: migrate storage to apiv1 (#1890)
* refactor: migrate storage to apiv1 * chore: update * chore: update * chore: update
This commit is contained in:
@ -230,19 +230,19 @@ export function deleteTag(tagName: string) {
|
||||
}
|
||||
|
||||
export function getStorageList() {
|
||||
return axios.get<ResponseObject<ObjectStorage[]>>(`/api/storage`);
|
||||
return axios.get<ObjectStorage[]>(`/api/v1/storage`);
|
||||
}
|
||||
|
||||
export function createStorage(storageCreate: StorageCreate) {
|
||||
return axios.post<ResponseObject<ObjectStorage>>(`/api/storage`, storageCreate);
|
||||
return axios.post<ObjectStorage>(`/api/v1/storage`, storageCreate);
|
||||
}
|
||||
|
||||
export function patchStorage(storagePatch: StoragePatch) {
|
||||
return axios.patch<ResponseObject<ObjectStorage>>(`/api/storage/${storagePatch.id}`, storagePatch);
|
||||
return axios.patch<ObjectStorage>(`/api/v1/storage/${storagePatch.id}`, storagePatch);
|
||||
}
|
||||
|
||||
export function deleteStorage(storageId: StorageId) {
|
||||
return axios.delete(`/api/storage/${storageId}`);
|
||||
return axios.delete(`/api/v1/storage/${storageId}`);
|
||||
}
|
||||
|
||||
export function getIdentityProviderList() {
|
||||
|
Reference in New Issue
Block a user