def getAllStatsJson(): if request.method == 'GET': if not request.json: return statHandler().getAllStats() return statHandler().getStatByChoice(request.json) else: return jsonify(Error="Method not allowed."), 405
def getTopHashtags(): if request.method == 'GET': return statHandler().getTopHashtags() else: return jsonify(Error="Method not allowed."), 405
def getMostActiveUsers(): if request.method == 'GET': return statHandler().getMostActiveUsers() else: return jsonify(Error="Method not allowed."), 405