summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-30 10:02:49 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-30 10:02:49 +0000
commita9bffba07973de2becaa84d9d96095a434b2853d (patch)
tree7f443e795133690ddf19ef4f3fb5addcd4d7a1a5 /app
parent0f9976751134107dfa53f68dd361f0d66836d37e (diff)
(임수민) 기본계약서 경로 수정
Diffstat (limited to 'app')
-rw-r--r--app/api/files/[...path]/route.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/api/files/[...path]/route.ts b/app/api/files/[...path]/route.ts
index 0416f800..58014a45 100644
--- a/app/api/files/[...path]/route.ts
+++ b/app/api/files/[...path]/route.ts
@@ -74,8 +74,12 @@ export async function GET(
);
// 디코딩된 경로로 조합
- const requestedPath = decodedPath.join('/');
+ let requestedPath = decodedPath.join('/');
+ if (requestedPath.startsWith('api/files/')) {
+ requestedPath = requestedPath.substring('api/files/'.length);
+ }
+
console.log(`📂 파일 요청: ${requestedPath}`);
// ✅ 다운로드 강제 여부 확인