upd: pencarian
Deskripsi: - halaman pencarian NO Issues
This commit is contained in:
@@ -20,6 +20,12 @@ export const apiGetProfile = async ({ id }: { id: string }) => {
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
// export const createEntity = async (newEntity: any) => {
|
||||
// const response = await api.post('/entities', newEntity);
|
||||
// return response.data;
|
||||
|
||||
Reference in New Issue
Block a user