Added simple root and swagger routes
This commit is contained in:
parent
bcfc8e6eeb
commit
6be8b0044a
5 changed files with 59 additions and 10 deletions
|
|
@ -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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue