Commit 7304d653 authored by Joel Collins's avatar Joel Collins
Browse files

Added LabThings type to OFM app

parent 85b43c30
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ app, labthing = create_app(
    prefix="/api/v2",
    title=f"OpenFlexure Microscope {api_microscope.name}",
    description="Test LabThing-based API for OpenFlexure Microscope",
    types=["org.openflexure.microscope"],
    version=pkg_resources.get_distribution("openflexure_microscope").version,
    flask_kwargs={"static_url_path": ""},
)
@@ -171,9 +172,6 @@ def cleanup():

atexit.register(cleanup)

# if __name__ == "__main__":
#    app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)

# Start the app
if __name__ == "__main__":
    from labthings.server.wsgi import Server