This commit is contained in:
2021-01-25 21:52:52 +01:00
commit b88dec12d3
9 changed files with 240 additions and 0 deletions

12
server.py Normal file
View File

@ -0,0 +1,12 @@
import connexion
from flask_cors import CORS
# instantiate the webservice
app = connexion.App(__name__)
app.add_api('openapi.yaml')
# CORSify it - otherwise Angular won't accept it
CORS(app.app)
# provide the webservice application to uwsgi
application = app.app