Can mark a comment as the answer, some layout changes

This commit is contained in:
jackiettran
2025-11-11 18:23:11 -05:00
parent 825389228d
commit b045fbeb01
11 changed files with 379 additions and 323 deletions

View File

@@ -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) =>