Files
hipmi-mobile/service/api-client/api-profile.ts
Bagasbanuna02 59482ca712 API Profile:
Fix:
- api create, get , edit

Types
Add:
- Type-Profile

### No Issue
2025-08-25 17:59:07 +08:00

27 lines
563 B
TypeScript

import { apiConfig } from "../api-config";
export async function apiCreateProfile(data: any) {
const response = await apiConfig.post(`/mobile/profile`, {
data: data,
});
return response.data;
}
export async function apiProfile({ id }: { id: string }) {
const response = await apiConfig.get(`/mobile/profile/${id}`);
return response.data;
}
export async function apiUpdateProfile({
id,
data,
}: {
id: string;
data: any;
}) {
const response = await apiConfig.put(`/mobile/profile/${id}`, {
data: data,
});
return response.data;
}