more incremental progress on web console

This commit is contained in:
Noah Levitt 2015-10-09 20:12:40 +00:00
parent 2ddda68392
commit 0591548861
5 changed files with 66 additions and 11 deletions

View file

@ -73,8 +73,13 @@ def jobs():
jobs_ = list(r.table("jobs").run())
return flask.jsonify(jobs=jobs_)
@app.route("/api/<path:path>")
@app.route("/api", defaults={"path":""})
def api404(path):
flask.abort(404)
@app.route("/", defaults={"path": ""})
@app.route('/<path:path>')
@app.route("/<path:path>")
def root(path):
return app.send_static_file("index.html")