Added API route to edit camera config

This commit is contained in:
Joel Collins 2019-01-15 12:17:14 +00:00
parent a8c9a7e7dd
commit 6a374d093a
3 changed files with 86 additions and 1 deletions

View file

@ -2,7 +2,7 @@ from openflexure_microscope.api.v1.views import MicroscopeView
from flask import Blueprint
from . import capture, record, preview
from . import capture, record, preview, config
def construct_blueprint(microscope_obj):
@ -31,4 +31,9 @@ def construct_blueprint(microscope_obj):
'/preview/<string:operation>',
view_func=preview.GPUPreviewAPI.as_view('gpu_preview', microscope=microscope_obj))
# Config routes
blueprint.add_url_rule(
'/config',
view_func=config.ConfigAPI.as_view('camera_config', microscope=microscope_obj))
return(blueprint)