8
apps/web/src/app/api/dashboard/route.ts
Executable file
8
apps/web/src/app/api/dashboard/route.ts
Executable file
@@ -0,0 +1,8 @@
|
||||
import { handleApi } from "@/lib/api";
|
||||
import { getDashboard } from "@/lib/services/dashboard";
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const { searchParams } = new URL(request.url);
|
||||
const date = searchParams.get("date") ?? undefined;
|
||||
return handleApi(() => getDashboard(date));
|
||||
}
|
||||
Reference in New Issue
Block a user