mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-09 15:02:28 -04:00
more incremental progress on web console
This commit is contained in:
parent
2ddda68392
commit
0591548861
5 changed files with 66 additions and 11 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue