upd:banner home
deskripsi: - load banner di halaman home - nb : blm selesai No Issues
This commit is contained in:
@@ -20,11 +20,16 @@ export const apiGetProfile = async ({ id }: { id: string }) => {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const apiGetSearch = async ({ text, user }: { text: string, user:string }) => {
|
||||
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;
|
||||
};
|
||||
|
||||
export const apiGetBanner = async ({ user }: { user: string }) => {
|
||||
const response = await api.get(`mobile/banner?user=${user}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
|
||||
// export const createEntity = async (newEntity: any) => {
|
||||
// const response = await api.post('/entities', newEntity);
|
||||
|
||||
Reference in New Issue
Block a user