rev: diskusi umum

Deskripsi:
- detail diskusi
- list anggota diskusi

- blm selesai

No Issues
This commit is contained in:
amel
2025-01-05 14:13:52 +08:00
parent 463efe59ce
commit 506d8ab01b
12 changed files with 1072 additions and 10 deletions

View File

@@ -14,4 +14,9 @@ export const funCreateDiscussionGeneral = async (data: { idGroup: string, title:
body: JSON.stringify(data),
});
return await response.json().catch(() => null);
}
}
export const funGetOneDiscussionGeneral = async (id: string, path: string) => {
const response = await fetch(`/api/discussion-general/${id}${(path) ? path : ''}`, { next: { tags: ['discussion-general'] } });
return await response.json().catch(() => null);
}