admin soft delete functionality, also fixed google sign in when user doesn't have first and last name
This commit is contained in:
@@ -281,6 +281,11 @@ export const forumAPI = {
|
||||
api.put(`/forum/comments/${commentId}`, data),
|
||||
deleteComment: (commentId: string) =>
|
||||
api.delete(`/forum/comments/${commentId}`),
|
||||
// Admin endpoints
|
||||
adminDeletePost: (id: string) => api.delete(`/forum/admin/posts/${id}`),
|
||||
adminRestorePost: (id: string) => api.patch(`/forum/admin/posts/${id}/restore`),
|
||||
adminDeleteComment: (id: string) => api.delete(`/forum/admin/comments/${id}`),
|
||||
adminRestoreComment: (id: string) => api.patch(`/forum/admin/comments/${id}/restore`),
|
||||
};
|
||||
|
||||
export const stripeAPI = {
|
||||
|
||||
Reference in New Issue
Block a user