Renamed Resource to View, and allow custom root links
This commit is contained in:
parent
234ebc1cbb
commit
a329b9197b
18 changed files with 90 additions and 67 deletions
|
|
@ -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
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue