From 2806af6403fabd85c0f08ed835fa61a12a913a52 Mon Sep 17 00:00:00 2001 From: Viet Anh Nguyen Date: Mon, 5 Feb 2024 18:52:22 +0700 Subject: [PATCH] Remove redundant /api --- cope2n-fe/src/request/report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cope2n-fe/src/request/report.ts b/cope2n-fe/src/request/report.ts index c2a2d17..b66277a 100644 --- a/cope2n-fe/src/request/report.ts +++ b/cope2n-fe/src/request/report.ts @@ -117,7 +117,7 @@ export async function downloadReport(report_id: string) { export async function downloadDashboardReport(duration='30d', subsidiary='ALL') { try { - const response = await API.get(`/api/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, { + const response = await API.get(`/ctel/overview_download_file/?duration=${duration}&subsidiary=${subsidiary}`, { responseType: 'blob', // Important }); let filename = "report.xlsx";