fix: build
Deskripsi: - update build No Issues'
This commit is contained in:
@@ -21,6 +21,15 @@ export const apiGetProfile = async ({ id }: { id: string }) => {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiEditProfile = async (data: FormData) => {
|
||||
const response = await api.put(`/mobile/user/profile`, data, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
})
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiGetSearch = async ({ text, user }: { text: string, user: string }) => {
|
||||
const response = await api.get(`mobile/home/search?search=${text}&user=${user}`);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user