4 lines
219 B
TypeScript
4 lines
219 B
TypeScript
export const funGetAllCalender = async (path?: string) => {
|
|
const response = await fetch(`/api/calender${(path) ? path : ''}`, { next: { tags: ['calender'] } });
|
|
return await response.json().catch(() => null);
|
|
} |