Can mark a comment as the answer, some layout changes
This commit is contained in:
@@ -262,6 +262,8 @@ export const forumAPI = {
|
||||
deletePost: (id: string) => api.delete(`/forum/posts/${id}`),
|
||||
updatePostStatus: (id: string, status: string) =>
|
||||
api.patch(`/forum/posts/${id}/status`, { status }),
|
||||
acceptAnswer: (postId: string, commentId: string | null) =>
|
||||
api.patch(`/forum/posts/${postId}/accept-answer`, { commentId }),
|
||||
getMyPosts: () => api.get("/forum/my-posts"),
|
||||
getTags: (params?: any) => api.get("/forum/tags", { params }),
|
||||
createComment: (postId: string, data: any) =>
|
||||
|
||||
Reference in New Issue
Block a user