Files
sistem-desa-mandiri/src/module/home/lib/api_search.ts
lukman 0fe48f0f30 feat : update search
Deskripsi:
- add api search

No Issue
2024-08-29 10:02:52 +08:00

6 lines
220 B
TypeScript

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