upd: pencarian

Deskripsi:
- halaman pencarian

NO Issues
This commit is contained in:
amel
2025-04-24 17:24:26 +08:00
parent 716e021a7a
commit a92967006d
3 changed files with 140 additions and 95 deletions

View File

@@ -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;