mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
DirectroyEntry 컴포넌트 구현
This commit is contained in:
@@ -21,7 +21,10 @@ export const load: PageServerLoad = async ({ params, fetch }) => {
|
||||
directoryInfo.subDirectories.map(async (subDirectoryId) => {
|
||||
const res = await fetch(`/api/directory/${subDirectoryId}`);
|
||||
if (!res.ok) error(500, "Internal server error");
|
||||
return (await res.json()) as DirectroyInfoResponse;
|
||||
return {
|
||||
...((await res.json()) as DirectroyInfoResponse),
|
||||
id: subDirectoryId,
|
||||
};
|
||||
}),
|
||||
);
|
||||
const fileInfos = directoryInfo.files; // TODO
|
||||
|
||||
Reference in New Issue
Block a user