Loading .gitattributes 0 → 100644 +1 −0 Original line number Diff line number Diff line openflexure_microscope/api/static/** filter=lfs diff=lfs merge=lfs -text openflexure_microscope/api/app.py +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ app, labthing = create_app( title=f"OpenFlexure Microscope {api_microscope.name}", description="Test LabThing-based API for OpenFlexure Microscope", version=pkg_resources.get_distribution("openflexure_microscope").version, flask_kwargs={"static_url_path": ""}, ) # Enable CORS for some routes outside of LabThings Loading Loading @@ -120,6 +121,11 @@ for name, action in views.enabled_root_actions().items(): labthing.add_view(view_class, f"/actions{rule}") @app.route("/") def openflexure_ev(): return app.send_static_file("index.html") @app.route("/routes") @cross_origin() def routes(): Loading Loading
.gitattributes 0 → 100644 +1 −0 Original line number Diff line number Diff line openflexure_microscope/api/static/** filter=lfs diff=lfs merge=lfs -text
openflexure_microscope/api/app.py +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,7 @@ app, labthing = create_app( title=f"OpenFlexure Microscope {api_microscope.name}", description="Test LabThing-based API for OpenFlexure Microscope", version=pkg_resources.get_distribution("openflexure_microscope").version, flask_kwargs={"static_url_path": ""}, ) # Enable CORS for some routes outside of LabThings Loading Loading @@ -120,6 +121,11 @@ for name, action in views.enabled_root_actions().items(): labthing.add_view(view_class, f"/actions{rule}") @app.route("/") def openflexure_ev(): return app.send_static_file("index.html") @app.route("/routes") @cross_origin() def routes(): Loading