mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
moving to server actions
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { LocalAssignment } from "@/models/local/assignment/localAssignment";
|
||||
import { fileStorageService } from "@/services/fileStorage/fileStorageService";
|
||||
import { withErrorHandling } from "@/services/withErrorHandling";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export const GET = async (
|
||||
_request: Request,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { fileStorageService } from "@/services/fileStorage/fileStorageService";
|
||||
import { withErrorHandling } from "@/services/withErrorHandling";
|
||||
|
||||
export const GET = async () =>
|
||||
await withErrorHandling(async () => {
|
||||
const directories = await fileStorageService.getEmptyDirectories();
|
||||
return Response.json(directories);
|
||||
});
|
||||
// export const GET = async () =>
|
||||
// await withErrorHandling(async () => {
|
||||
// const directories = await fileStorageService.getEmptyDirectories();
|
||||
// return Response.json(directories);
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user