Renamed Resource to View, and allow custom root links

This commit is contained in:
Joel Collins 2020-01-14 11:41:56 +00:00
parent 234ebc1cbb
commit a329b9197b
18 changed files with 90 additions and 67 deletions

View file

@ -7,14 +7,14 @@ from openflexure_microscope.common.labthings_core.utilities import (
)
from openflexure_microscope.common.flask_labthings.find import find_component
from openflexure_microscope.common.flask_labthings.resource import Resource
from openflexure_microscope.common.flask_labthings.view import View
from openflexure_microscope.common.flask_labthings.decorators import doc_response, ThingProperty
from flask import Response
@ThingProperty
class MjpegStream(Resource):
class MjpegStream(View):
"""
Real-time MJPEG stream from the microscope camera
"""
@ -34,7 +34,7 @@ class MjpegStream(Resource):
@ThingProperty
class SnapshotStream(Resource):
class SnapshotStream(View):
"""
Single JPEG snapshot from the camera stream
"""