upd: indicator kelender

Deskripsi:
- indicator kalender sesuai data

No Issues
This commit is contained in:
amel
2024-08-28 12:33:48 +08:00
parent 0e5d8200c7
commit cffc411fa8
3 changed files with 98 additions and 15 deletions

View File

@@ -41,4 +41,10 @@ export const funEditCalenderById = async (path: string, data: IEditCalender) =>
body: JSON.stringify(data),
});
return await response.json().catch(() => null);
}
export const funGetIndicatorCalender = async (path?: string) => {
const response = await fetch(`/api/calender/indicator${(path) ? path : ''}`, { next: { tags: ['hostory'] } });
return await response.json().catch(() => null);
}