Started adding more content to openapi

This commit is contained in:
Richard 2021-07-14 19:15:26 +01:00
parent 8422e8bfef
commit 6a7c305468
2 changed files with 46 additions and 0 deletions

View file

@ -39,6 +39,7 @@ from openflexure_microscope.paths import (
OPENFLEXURE_VAR_PATH,
logs_file_path,
)
from .openapi import add_spec_extras
# Custom RotatingFileHandler subclass
@ -209,6 +210,8 @@ def routes():
def api_v1_catch_all(path): # pylint: disable=W0613
abort(410, "API v1 is no longer in use. Please upgrade your client.")
add_spec_extras(labthing.spec)
# Automatically clean up microscope at exit
def cleanup():