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 = () =>
|
||||
useSuspenseQuery({
|
||||
queryKey: directoryKeys.emptyFolders,
|
||||
queryFn: async () => {
|
||||
const url = "/api/directories/empty";
|
||||
const { data } = await axiosClient.get<string[]>(url);
|
||||
return data;
|
||||
},
|
||||
queryFn: getEmptyDirectories
|
||||
// async () => {
|
||||
// const url = "/api/directories/empty";
|
||||
// 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