feat : calender

Deskripsi:
- update api calender
- update ui calender

No Issue
This commit is contained in:
lukman
2024-08-15 17:29:53 +08:00
parent 1634623e80
commit e608bf70bc
17 changed files with 272 additions and 87 deletions

View File

@@ -1,4 +1,10 @@
export const funGetAllCalender = async (path?: string) => {
const response = await fetch(`/api/calender${(path) ? path : ''}`, { next: { tags: ['calender'] } });
return await response.json().catch(() => null);
}
export const funGetOneCalender = async (path: string) => {
const response = await fetch(`/api/calender/${path}`);
return await response.json().catch(() => null);
}