- app/(application)/(user)/delete-account.tsx - assets/images/constants/logo-hipmi_back.png Fix: - app/(application)/(user)/_layout.tsx - assets/images/constants/logo-hipmi.png - components/Grid/GridCustom.tsx - screens/Profile/ListPage.tsx - screens/Profile/menuDrawerSection.tsx - service/api-client/api-user.ts ### No Issue
17 lines
492 B
TypeScript
17 lines
492 B
TypeScript
import { apiConfig } from "../api-config";
|
|
|
|
export async function apiUser(id: string) {
|
|
const response = await apiConfig.get(`/mobile/user/${id}`);
|
|
return response.data;
|
|
}
|
|
|
|
export async function apiAllUser({ search }: { search: string }) {
|
|
const response = await apiConfig.get(`/mobile/user?search=${search}`);
|
|
return response.data;
|
|
}
|
|
|
|
export async function apiDeleteUser({id}:{id: string}) {
|
|
const response = await apiConfig.delete(`/mobile/user/${id}`);
|
|
return response.data;
|
|
}
|