Added simple root and swagger routes

This commit is contained in:
jtc42 2020-01-03 00:19:25 +00:00
parent bcfc8e6eeb
commit 6be8b0044a
5 changed files with 59 additions and 10 deletions

View file

@ -168,8 +168,8 @@ def cleanup():
atexit.register(cleanup)
if __name__ == "__main__":
# app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
#from pprint import pprint
#pprint(labthing.spec.to_dict())
with open('spec.yaml', 'w') as f:
f.write(labthing.spec.to_yaml())
#with open('spec.yaml', 'w') as f:
# f.write(labthing.spec.to_yaml())