feat : update project get all

This commit is contained in:
lukman
2024-08-21 14:01:17 +08:00
parent 07369e5db9
commit d2d2b0cc9e
19 changed files with 683 additions and 254 deletions

View File

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