refactor(FE-327): change closing API paths and sales types

This commit is contained in:
rstubryan
2025-12-05 18:26:58 +07:00
parent f205c66509
commit 5869e0434b
2 changed files with 10 additions and 14 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ export class ClosingApiService extends BaseApiService<
id: number
): Promise<BaseApiResponse<ClosingSales> | undefined> {
try {
const getPenjualanPath = `http://localhost:4010/api/closing/${id}/penjualan`;
const getPenjualanPath = `${id}/penjualan`;
return await this.customRequest<BaseApiResponse<ClosingSales>>(
getPenjualanPath
);
@@ -25,4 +25,4 @@ export class ClosingApiService extends BaseApiService<
}
}
export const ClosingApi = new ClosingApiService('/closing');
export const ClosingApi = new ClosingApiService('/closings');