Files
arkvault/src/routes/(fullscreen)/gallery/+page.ts
2025-12-26 22:29:44 +09:00

8 lines
209 B
TypeScript

import { trpc } from "$trpc/client";
import type { PageLoad } from "./$types";
export const load: PageLoad = async ({ fetch }) => {
const files = await trpc(fetch).file.list.query();
return { files };
};