16 lines
339 B
Python
16 lines
339 B
Python
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, origins=[
|
|
"http://localhost:4200",
|
|
"https://base.hv.nober.de"
|
|
])
|
|
|
|
# provide the webservice application to uwsgi
|
|
application = app.app
|