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
@@ -206,6 +206,14 @@ export const removeLinkAPI = async (fileID: string) => {
return response.data;
};
export const moveFileAPI = async (fileID: string, parentID: string) => {
const response = await axios.patch(`/file-service/move`, {
id: fileID,
parentID,
});
return response.data;
};
// DELETE
export const deleteFileAPI = async (fileID: string) => {