refactor(FE): Change endpoint path to reports

This commit is contained in:
rstubryan
2026-01-13 16:47:58 +07:00
parent 8481b77c90
commit 582b971c09
2 changed files with 2 additions and 4 deletions
@@ -33,7 +33,7 @@ const MarketingReportContent = () => {
const [activeTab, setActiveTab] = useState<string>('daily'); const [activeTab, setActiveTab] = useState<string>('daily');
return ( return (
<section className='w-full max-w-7xl pb-16'> <section className='w-full max-w-full pb-16'>
<Tabs <Tabs
activeTabId={activeTab} activeTabId={activeTab}
onTabChange={setActiveTab} onTabChange={setActiveTab}
+1 -3
View File
@@ -44,9 +44,7 @@ export class MarketingSaleReportService extends BaseApiService<
} }
} }
export const SaleReportApi = new MarketingSaleReportService( export const SaleReportApi = new MarketingSaleReportService('reports');
'reports/marketings'
);
// export const SaleReportApi = new MarketingSaleReportService( // export const SaleReportApi = new MarketingSaleReportService(
// 'http://localhost:4010/api/reports/marketings' // 'http://localhost:4010/api/reports/marketings'