authservice/server.py

13 lines
298 B
Python
Raw Normal View History

2021-01-25 21:52:52 +01:00
import connexion
from flask_cors import CORS
# instantiate the webservice
app = connexion.App(__name__)
2021-01-27 12:06:21 +01:00
app.add_api('openapi.yaml', options = {"swagger_ui": True})
2021-01-25 21:52:52 +01:00
# CORSify it - otherwise Angular won't accept it
CORS(app.app)
# provide the webservice application to uwsgi
application = app.app