started folder upload changes

This commit is contained in:
subnub
2024-12-02 09:11:36 -05:00
parent f160a80f41
commit 2ef5aaef23
7 changed files with 235 additions and 4 deletions
+6
View File
@@ -97,6 +97,12 @@ export const createFolderAPI = async (name: string, parent?: string) => {
return response.data;
};
export const uploadFolderAPI = async (data: FormData, config: any) => {
const url = "/folder-service/upload";
const response = await axios.post(url, data, config);
return response.data;
};
// PATCH
export const renameFolder = async (folderID: string, name: string) => {