feat : update api project
This commit is contained in:
@@ -3,4 +3,9 @@
|
||||
export const funGetAllProject = async (path?: string) => {
|
||||
const response = await fetch(`/api/project${(path) ? path : ''}`, { next: { tags: ['project'] } });
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
|
||||
export const funGetOneProjectById = async (path: string, kategori: string) => {
|
||||
const response = await fetch(`/api/project/${path}?cat=${kategori}`);
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
Reference in New Issue
Block a user