refactor(FE-363): Update logistic report API endpoint and types

This commit is contained in:
rstubryan
2025-12-16 10:00:39 +07:00
parent 7ea9e10ad2
commit 4d997256ad
2 changed files with 19 additions and 27 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ export class LogisticApiService extends BaseApiService<
): Promise<BaseApiResponse<LogisticPurchasePerSupplierReport> | undefined> {
return await this.customRequest<
BaseApiResponse<LogisticPurchasePerSupplierReport>
>(`logistic-stock`, {
>(`purchase-supplier`, {
method: 'GET',
params: {
area_id: area_id,
@@ -43,5 +43,5 @@ export class LogisticApiService extends BaseApiService<
// TODO: REPLACE WITH PRODUCTION URL
export const LogisticApi = new LogisticApiService(
'http://localhost:4010/api/report'
'http://localhost:4010/api/reports/logistics'
);