@app.route('/sentimentTotalsByCity/<term>/<stateCode>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getAllSentimentByCity(term, stateCode, startDate, endDate):
    return jsonify(indexer.getAllSentimentByCity(term, stateCode, startDate, endDate))
@app.route('/sentimentTotalsByCity/<term>/<stateCode>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getAllSentimentByCity(term, stateCode, startDate, endDate):
    return jsonify(indexer.getAllSentimentByCity(term, stateCode, startDate, endDate))