feat : calender
Deskripsi: - update api calender - update ui calender No Issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user