summaryrefslogtreecommitdiff
path: root/lib/pos
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-20 11:21:10 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-20 11:21:10 +0900
commitb68d81f5a87e3278a02b915c2fc6ce0e62144865 (patch)
treedeb1a2ce6e804e4c452965adf184fe6f10a765ae /lib/pos
parent89fa000062650474915d5156fd21c6a85a06608b (diff)
(김준회) pos 파일 다운로드 경로문제 해결
Diffstat (limited to 'lib/pos')
-rw-r--r--lib/pos/download-pos-file.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/pos/download-pos-file.ts b/lib/pos/download-pos-file.ts
index d876c673..bd18f059 100644
--- a/lib/pos/download-pos-file.ts
+++ b/lib/pos/download-pos-file.ts
@@ -178,3 +178,10 @@ export async function createDownloadUrl(relativePath: string): Promise<string> {
const encodedPath = encodeURIComponent(relativePath);
return `/api/pos/download?path=${encodedPath}`;
}
+
+/**
+ * POS 파일의 리비전 ID를 사용하여 다운로드 URL을 생성하는 헬퍼 함수
+ */
+export async function createDownloadUrlByRevisionId(revisionId: number): Promise<string> {
+ return `/api/pos/download?revisionId=${revisionId}`;
+}