Added API route to draw overlay text

This commit is contained in:
Joel Collins 2019-01-15 17:07:43 +00:00
parent 9c488279d2
commit 65b50be0c5
2 changed files with 45 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, config
from . import capture, record, preview, config, overlay
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))
# Overlay routes
blueprint.add_url_rule(
'/overlay',
view_func=overlay.OverlayAPI.as_view('overlay', microscope=microscope_obj))
return(blueprint)