feat : update history

This commit is contained in:
lukman
2024-08-19 17:42:28 +08:00
parent ca1d3433ef
commit d1f9561d9b
14 changed files with 385 additions and 222 deletions

View File

@@ -4,6 +4,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 funGetHostory = async (path?: string) => {
const response = await fetch(`/api/calender/history${(path) ? path : ''}`, { next: { tags: ['hostory'] } });
return await response.json().catch(() => null);
}
export const funGetOneCalender = async (path: string) => {
const response = await fetch(`/api/calender/${path}`);