def comment_likes(request, community_id, post_id, comment_id): return handle_methods( request, POST=comment_controller.like_comment, DELETE=comment_controller.unlike_comment, args=[community_id, post_id, comment_id], )
def users_me(request): return handle_methods( request, GET=user_controller.get_user(request, request.user.id), PUT=user_controller.update_me, DELETE=user_controller.delete_me, )
def comment_approve(request, community_id, post_id, comment_id): return handle_methods( request, POST=comment_controller.approve_comment, DELETE=comment_controller.disapprove_comment, args=[community_id, post_id, comment_id], )
def post_likes(request, community_id, post_id): return handle_methods( request, POST=post_handler.like_post, DELETE=post_handler.unlike_post, args=[community_id, post_id], )
def posts(request, community_id): return handle_methods( request, POST=post_handler.create_post, GET=post_handler.show_posts, args=[community_id], )
def community(request, community_id): return handle_methods( request, POST=community_controller.join_community, GET=community_controller.get_community, DELETE=community_controller.delete_community, args=[community_id], )
def leaderboard(request): return handle_methods( request, GET=user_controller.get_leaderboard, )
def feed(request): return handle_methods( request, GET=user_controller.get_feed, )
def users(request): return handle_methods( request, POST=user_controller.user_register, )
def send_email(request): return handle_methods(request, POST=user_controller.send_email)
def reset_password(request): return handle_methods(request, POST=user_controller.reset_password)
def comments(request, community_id, post_id): return handle_methods( request, POST=comment_controller.make_comment, args=[community_id, post_id], )
def post(request, community_id, post_id): return handle_methods( request, GET=post_handler.show_post, args=[community_id, post_id], )
def community_leave(request, community_id): return handle_methods( request, POST=community_controller.leave_community, args=[community_id], )
def users_individual(request, user_id): return handle_methods( request, GET=user_controller.get_user, args=[user_id], )
def logout(request): return handle_methods( request, POST=user_controller.user_logout, )
def users_share_code(request): return handle_methods( request, GET=user_controller.get_share_code, POST=user_controller.update_share_code, )
def communities(request): return handle_methods( request, POST=community_controller.create_new, GET=community_controller.list_communities, )