upd: task
Deskripsi: - update database - task divisi No Issues
This commit is contained in:
4
src/module/task/lib/api_task.ts
Normal file
4
src/module/task/lib/api_task.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const funGetAllTask = async (path?: string) => {
|
||||
const response = await fetch(`/api/task${(path) ? path : ''}`, { next: { tags: ['task'] } });
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
Reference in New Issue
Block a user