summaryrefslogtreecommitdiff
path: root/lib/pos/download-pos-file.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pos/download-pos-file.ts')
-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}`;
+}