mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
updates
This commit is contained in:
@@ -8,9 +8,10 @@ export const directoryKeys = {
|
|||||||
export const useEmptyDirectoriesQuery = () =>
|
export const useEmptyDirectoriesQuery = () =>
|
||||||
useSuspenseQuery({
|
useSuspenseQuery({
|
||||||
queryKey: directoryKeys.emptyFolders,
|
queryKey: directoryKeys.emptyFolders,
|
||||||
queryFn: async () => {
|
queryFn: getEmptyDirectories
|
||||||
const url = "/api/directories/empty";
|
// async () => {
|
||||||
const { data } = await axiosClient.get<string[]>(url);
|
// const url = "/api/directories/empty";
|
||||||
return data;
|
// const { data } = await axiosClient.get<string[]>(url);
|
||||||
},
|
// return data;
|
||||||
|
// },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
"use server"
|
||||||
|
|
||||||
|
import { fileStorageService } from "@/services/fileStorage/fileStorageService"
|
||||||
|
|
||||||
|
export async function getEmptyDirectories() {
|
||||||
|
return await fileStorageService.getEmptyDirectories()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user