From b68d81f5a87e3278a02b915c2fc6ce0e62144865 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 20 Oct 2025 11:21:10 +0900 Subject: (김준회) pos 파일 다운로드 경로문제 해결 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pos/download-pos-file.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/pos') 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 { const encodedPath = encodeURIComponent(relativePath); return `/api/pos/download?path=${encodedPath}`; } + +/** + * POS 파일의 리비전 ID를 사용하여 다운로드 URL을 생성하는 헬퍼 함수 + */ +export async function createDownloadUrlByRevisionId(revisionId: number): Promise { + return `/api/pos/download?revisionId=${revisionId}`; +} -- cgit v1.2.3