@app.route('/resample', methods=['POST'])
def resample():
    if request.method == 'POST':
        data = json.loads(request.form['data'])
        freq = json.loads(request.form['freq'])
        df = tr.to_df(data)
        json_return = tr.resample(df=df, freq=freq)
        resp = Response(json.dumps(json_return), status=200,
                        mimetype='application/json')
        return resp
Logs a user out. (You do not need to pass the actual user.) This will
dataset/ETHPy150Open wrobstory/mcflyin/mcflyin/application.py/resample--crossover with--dataset/ETHPy150Open maxcountryman/flask-login/flask_login/utils.py/logout_user