started mover modal

This commit is contained in:
subnub
2024-08-04 02:46:09 -04:00
parent 1757bed5af
commit c648b9bfc6
15 changed files with 424 additions and 3 deletions
+16
View File
@@ -36,6 +36,22 @@ export const getFolderInfoAPI = async ({
return response.data;
};
export const getMoveFolderListAPI = async ({
queryKey,
}: QueryFunctionContext<
[string, { parent: string; search: string; folderID?: string }]
>) => {
const [_key, { parent, search, folderID }] = queryKey;
const response = await axios.get(`/folder-service/move-folder-list`, {
params: {
parent,
search,
folderID,
},
});
return response.data;
};
// POST
export const createFolderAPI = async (name: string, parent?: string) => {