def getTrends(): if request.method == 'GET': return HashtagHandler().getTrendingTopics() else: return jsonify(Error="Method not allowed."), 405
def getHashtags(): if request.method == 'POST': return HashtagHandler().insertHashtagJson(request.json) else: return HashtagHandler().getAllHashtags()
def deleteHashtag(hashtag_id): if request.method == 'DELETE': return HashtagHandler().deleteHashtag(hashtag_id)
def updateHashtag(hashtag_id, hashtag_text): if request.method == 'PUT': return HashtagHandler().updateHashtag(hashtag_id, hashtag_text)
def createHashtag(hashtag_text): if request.method == 'POST': return HashtagHandler().createHashtag(hashtag_text)
def getHashtagText(hashtag_id): if request.method == 'GET': return HashtagHandler().getHashtagText(hashtag_id)
def getAllHashtags(): if request.method == 'GET': return HashtagHandler().getAllHashtags()