Added capture resources to new system
This commit is contained in:
parent
5efd58f561
commit
74f1d55bb2
4 changed files with 394 additions and 1 deletions
|
|
@ -17,7 +17,6 @@ from openflexure_microscope.api.exceptions import JSONExceptionHandler
|
|||
from openflexure_microscope.api.utilities import list_routes
|
||||
|
||||
from openflexure_microscope.config import settings_file_path, JSONEncoder
|
||||
from openflexure_microscope.api.v1 import blueprints
|
||||
from openflexure_microscope.api import v2
|
||||
|
||||
from openflexure_microscope.common.labthings.labthing import LabThing
|
||||
|
|
@ -88,6 +87,9 @@ labthing.register_device(api_microscope, "openflexure_microscope")
|
|||
for _plugin in find_plugins(USER_PLUGINS_PATH):
|
||||
labthing.register_plugin(_plugin)
|
||||
|
||||
from openflexure_microscope.api.v2.views.captures import add_captures_to_labthing
|
||||
add_captures_to_labthing(labthing, prefix="")
|
||||
|
||||
# WEBAPP ROUTES
|
||||
|
||||
### V2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue