From ee8a2fc415c91b358f2fe5d257f5845067da1248 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 29 Oct 2020 14:06:36 +0000 Subject: [PATCH] Code formatting --- openflexure_microscope/api/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 2d2028d9..f0962159 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -151,8 +151,11 @@ class LogFileView(View): as_attachment=True, attachment_filename="openflexure_microscope_{}.log".format(timestamp), ) + + labthing.add_view(LogFileView, "/log") + @app.route("/") def openflexure_ev(): return app.send_static_file("index.html") @@ -166,6 +169,7 @@ def routes(): """ return list_routes(app) + @app.route("/api/v1/", defaults={"path": ""}) @app.route("/api/v1/") def api_v1_catch_all(path): # pylint: disable=W0613