feat : update discussion
Deskripsi - update discussion No issue
This commit is contained in:
@@ -17,4 +17,10 @@ export const funCreateDiscussion = async (data: IFormDiscussion) => {
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
|
||||
|
||||
export const funGetDiscussionById = async (path: string) => {
|
||||
const response = await fetch(`/api/discussion/${path}`);
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
Reference in New Issue
Block a user