def getSearchRoomHistory(room, term): hs = History() search = hs.searchRoomMessages(room=room, term=term) return jsonify(search)