Remove redundant /api

This commit is contained in:
Viet Anh Nguyen 2024-02-05 18:52:22 +07:00
parent 99a0921685
commit 2806af6403

View File

@ -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";