openflexure-microscope-server/openflexure_microscope/api/v1/views.py
2018-12-06 15:37:51 +00:00

13 lines
No EOL
334 B
Python

from flask.views import MethodView
class MicroscopeView(MethodView):
def __init__(self, microscope, **kwargs):
"""
Create a generic MethodView with a globally available
microscope object passed as an argument.
"""
self.microscope = microscope
MethodView.__init__(self, **kwargs)