27 lines
563 B
TypeScript
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;
|
|
}
|