6 lines
220 B
TypeScript
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);
|
|
} |