started getting move file and folder API working

This commit is contained in:
subnub
2024-08-04 18:36:59 -04:00
parent f0c2bbd42d
commit 34323fe4fb
13 changed files with 191 additions and 50 deletions
+8
View File
@@ -90,6 +90,14 @@ export const restoreFolderAPI = async (folderID: string) => {
return response.data;
};
export const moveFolderAPI = async (folderID: string, parentID: string) => {
const response = await axios.patch(`/folder-service/move`, {
id: folderID,
parentID,
});
return response.data;
};
// DELETE
export const deleteFolderAPI = async (folderID: string) => {