Added capture resources to new system

This commit is contained in:
Joel Collins 2019-12-18 11:55:51 +00:00
parent 5efd58f561
commit 74f1d55bb2
4 changed files with 394 additions and 1 deletions

View file

@ -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