Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
-2
@@ -1,12 +1,10 @@
|
||||
import type { LoaderFunctionArgs } from "react-router";
|
||||
import { serverOnly$ } from "vite-env-only/macros";
|
||||
import { requireAuth } from "~/utils/loaders.middleware";
|
||||
import { loadAdminDashboardRouteData, type AdminDashboardLoaderData } from "~/utils/data/.server/adminDashboardRouteData";
|
||||
|
||||
export type { AdminDashboardLoaderData };
|
||||
|
||||
export const loader = serverOnly$(async ({ request, params }: LoaderFunctionArgs) => {
|
||||
await requireAuth({ request, params });
|
||||
const { data, headers } = await loadAdminDashboardRouteData({ request, params });
|
||||
return Response.json(data, { headers });
|
||||
})!;
|
||||
Reference in new issue
Block a user