def getNumberOfPostsPerDay(): return PostHandler().getNumberOfPostsPerDay()
def getPostByGroupId(gID): if request.method == 'GET': return PostHandler().getPostByGroupId(gID) elif request.method == 'POST': return PostHandler().addPost(gID, request)
def getNumberOfRepliesForGivenPost(pID): return PostHandler().getNumberOfRepliesForGivenPost(pID)
def getNumberOfPostsPerDayByUser(uID): return PostHandler().getNumberOfPostsPerDayByUser(uID)
def getNumberOfDislikesPerDay(): return PostHandler().getNumberOfDislikesPerDay()
def getNumberOfDislikesForGivenPost(pID): return PostHandler().getNumberOfDislikesForGivenPost(pID)
def getListOfUsersWhoDislikedPost(pID): if request.method == 'GET': return PostHandler().getListOfUsersWhoDislikedPost(pID) if request.method == 'POST': return PostHandler().reactToPost(pID, request.json, 'dislike')
def getNumberOfRepliesPerDay(): return PostHandler().getNumberOfRepliesPerDay()
def getAllPost(): if request.method == 'GET': return PostHandler().getAllPost()
def getRepliesByPostID(pID): if request.method == 'POST': return PostHandler().replyToPostID(pID, request.json) if request.method == 'GET': return PostHandler().getRepliesByPostID(pID)
def getPostByGroupIdDETAILED(gID): if request.method == 'GET': return PostHandler().getPostByGroupIdDETAILED(gID)
def reactToaPost(gID): if request.method == 'GET': return PostHandler().getReaction(request.json) elif request.method == 'POST': return PostHandler().react(gID, request.json)
def getPostsPerDayByUser(uID): return PostHandler().getPostsPerDayByUser(uID)
def getPostsByUserID(uID): return PostHandler().getPostsByUserID(uID)
def getPostByID(pID): return PostHandler().getPostByID(pID)