emacs-ipython-notebook/test/redirecting-server.py
John Miller 9d5309af59 Trying something new with testing.
Let's do this with ert-runner instead of python. Maybe it will work for once.
2018-02-27 14:38:13 -06:00

17 lines
340 B
Python

from flask import Flask, redirect
app = Flask(__name__)
@app.route('/')
def jupyter_redirect():
return redirect("http://127.0.0.1:8888/", code=302)
@app.route('/api')
def api_check():
return redirect("http://127.0.0.1:8888/api", code=302)
if __name__=='__main__':
port = int(8000)
app.run(host='127.0.0.1', port=port)