feat : update search

Deskripsi:
- add api search

No Issue
This commit is contained in:
lukman
2024-08-28 17:39:53 +08:00
committed by amel
parent 2d31379382
commit 0fe48f0f30
4 changed files with 139 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
export const funGetSearchAll = async (path?: string) => {
const response = await fetch(`/api/home/search${(path) ? path : ''}`, { next: { tags: ['search'] } });
return await response.json().catch(() => null);
}

View File