Reorganised stream resource

This commit is contained in:
Joel Collins 2019-11-20 13:48:27 +00:00
parent 8c5af3486c
commit 0b2536a79b
6 changed files with 122 additions and 66 deletions

View file

@ -11,6 +11,11 @@ from openflexure_microscope.api.views import MicroscopeView
from . import camera, stage, system
class ActionsAPI(MicroscopeView):
def get(self):
return jsonify(actions_representation())
_actions = {
"capture": {
"rule": "/camera/capture/",
@ -67,9 +72,6 @@ def actions_representation():
return actions
class ActionsAPI(MicroscopeView):
def get(self):
return jsonify(actions_representation())
def construct_blueprint(microscope_obj):
global _actions