upd: profile dan pencarian
No Issues
This commit is contained in:
@@ -16,13 +16,13 @@ export const apiSendOtp = async (body: { phone: string, otp: number }) => {
|
||||
}
|
||||
|
||||
export const apiGetProfile = async ({ id }: { id: string }) => {
|
||||
const response = await api.get(`/user/${id}`);
|
||||
const response = await api.get(`mobile/user/${id}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiGetSearch = async ({ text, user }: { text: string, user:string }) => {
|
||||
const response = await api.get(`/home/search?search=${text}&user=${user}`);
|
||||
return response.data.data;
|
||||
const response = await api.get(`mobile/home/search?search=${text}&user=${user}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user