Code formatting
This commit is contained in:
parent
f1d0ea5b28
commit
ee8a2fc415
1 changed files with 4 additions and 0 deletions
|
|
@ -151,8 +151,11 @@ class LogFileView(View):
|
||||||
as_attachment=True,
|
as_attachment=True,
|
||||||
attachment_filename="openflexure_microscope_{}.log".format(timestamp),
|
attachment_filename="openflexure_microscope_{}.log".format(timestamp),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
labthing.add_view(LogFileView, "/log")
|
labthing.add_view(LogFileView, "/log")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def openflexure_ev():
|
def openflexure_ev():
|
||||||
return app.send_static_file("index.html")
|
return app.send_static_file("index.html")
|
||||||
|
|
@ -166,6 +169,7 @@ def routes():
|
||||||
"""
|
"""
|
||||||
return list_routes(app)
|
return list_routes(app)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/api/v1/", defaults={"path": ""})
|
@app.route("/api/v1/", defaults={"path": ""})
|
||||||
@app.route("/api/v1/<path:path>")
|
@app.route("/api/v1/<path:path>")
|
||||||
def api_v1_catch_all(path): # pylint: disable=W0613
|
def api_v1_catch_all(path): # pylint: disable=W0613
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue