diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-29 01:58:40 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-29 01:58:40 +0000 |
| commit | 5202c4b56d9565c7ac0c2a62255763462cef0d3d (patch) | |
| tree | cce1b09818dc4e1b0787b477f0b37dfb40c27245 /app/api/data-room | |
| parent | 5b0994f2af11c77b61ac59df6211ccb20fae4d44 (diff) | |
(임수민) 데이터룸 요청사항 반영
Diffstat (limited to 'app/api/data-room')
| -rw-r--r-- | app/api/data-room/[projectId]/route.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/api/data-room/[projectId]/route.ts b/app/api/data-room/[projectId]/route.ts index 643dcf0f..2df20fc8 100644 --- a/app/api/data-room/[projectId]/route.ts +++ b/app/api/data-room/[projectId]/route.ts @@ -19,9 +19,11 @@ const createFileSchema = z.object({ // 파일 목록 조회 export async function GET( request: NextRequest, - { params }: { params: { projectId: string } } + { params }: { params: Promise<{ projectId: string }> } ) { try { + const { projectId } = await params; + const session = await getServerSession(authOptions); if (!session?.user) { return NextResponse.json({ error: '인증이 필요합니다' }, { status: 401 }); @@ -44,7 +46,7 @@ export async function GET( // viewMode가 tree이거나 includeAll이 true인 경우 전체 목록 가져오기 const files = await fileService.getFileList( - params.projectId, + projectId, parentId, context, { |
