feat : update calender

This commit is contained in:
lukman
2024-08-15 11:53:26 +08:00
parent d34a0a1a82
commit 2cfa96c0ed
14 changed files with 121 additions and 9 deletions

View File

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

View File

@@ -0,0 +1,10 @@
export interface IDataCalender {
id: string
title: string
desc: string
status: number
dateStart: string
dateEnd: string
createdAt: string
user_name: string
}