feat : update calender
This commit is contained in:
4
src/module/calender/lib/api_calender.ts
Normal file
4
src/module/calender/lib/api_calender.ts
Normal 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);
|
||||
}
|
||||
10
src/module/calender/lib/type_calender.ts
Normal file
10
src/module/calender/lib/type_calender.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user