Added LabThings type to OFM app
This commit is contained in:
parent
85b43c307d
commit
7304d6534e
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue