파일 페이지에 카테고리 목록 및 카테고리에 추가 버튼 구현

This commit is contained in:
static
2025-01-22 13:50:36 +09:00
parent a2402f37a0
commit 4c0d668cc1
7 changed files with 80 additions and 28 deletions

View File

@@ -26,6 +26,7 @@ export const GET: RequestHandler = async ({ locals, params }) => {
encName,
encCreatedAt,
encLastModifiedAt,
categories,
} = await getFileInformation(userId, id);
return json(
fileInfoResponse.parse({
@@ -41,6 +42,7 @@ export const GET: RequestHandler = async ({ locals, params }) => {
createdAtIv: encCreatedAt?.iv,
lastModifiedAt: encLastModifiedAt.ciphertext,
lastModifiedAtIv: encLastModifiedAt.iv,
categories,
} satisfies FileInfoResponse),
);
};