mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
갤러리 페이지 구현
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
import { error } from "@sveltejs/kit";
|
||||
import { trpc } from "$trpc/client";
|
||||
import type { PageLoad } from "./$types";
|
||||
|
||||
export const load: PageLoad = async ({ fetch }) => {
|
||||
try {
|
||||
const files = await trpc(fetch).file.listWithoutThumbnail.query();
|
||||
return { files };
|
||||
} catch {
|
||||
// TODO: Error Handling
|
||||
error(500, "Internal server error");
|
||||
}
|
||||
const files = await trpc(fetch).file.listWithoutThumbnail.query();
|
||||
return { files };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user