Files
hipmi-mobile/service/api-client/api-master.ts
Bagasbanuna02 41a4a94255 Portofolio
Add:
- ervice/api-client/api-portofolio.ts
- creens/Portofolio/BoxPortofolioView.tsx
- screens/Portofolio/ButtonCreatePortofolio.tsx
- create dan show

### No Issue
2025-08-29 17:42:33 +08:00

21 lines
461 B
TypeScript

import { apiConfig } from "../api-config";
export async function apiMasterBidangBisnis() {
try {
const response = await apiConfig.get(`/master/bidang-bisnis`);
return response.data;
} catch (error) {
throw error;
}
}
export async function apiMasterSubBidangBisnis({id}: {id: string}) {
try {
const response = await apiConfig.get(`/master/sub-bidang-bisnis/${id}`);
return response.data;
} catch (error) {
throw error;
}
}