Restructured entire API into blueprints

This commit is contained in:
Joel Collins 2018-12-06 15:37:51 +00:00
parent aede078eb9
commit c995a15fdc
13 changed files with 739 additions and 1024 deletions

View file

@ -0,0 +1,13 @@
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)