From f854a0de128f2c799e8ec9e564327232213e1598 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 26 Apr 2026 00:29:08 +0000 Subject: [PATCH] chore(report): remove unused getReportDownloadUrl helper --- frontend/src/api/report.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/src/api/report.js b/frontend/src/api/report.js index 25c56e5e..0c340ccc 100644 --- a/frontend/src/api/report.js +++ b/frontend/src/api/report.js @@ -50,13 +50,3 @@ export const chatWithReport = (data) => { return requestWithRetry(() => service.post('/api/report/chat', data), 3, 1000) } -/** - * Build the direct download URL for a report. - * @param {string} reportId - * @param {'md'|'pdf'} format - * @returns {string} URL for direct download - */ -export const getReportDownloadUrl = (reportId, format = 'md') => { - const base = import.meta.env.VITE_API_BASE_URL || '' - return `${base}/api/report/${reportId}/download?format=${format}` -}