We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7042733 commit 79f7aabCopy full SHA for 79f7aab
project/__init__.py
@@ -32,12 +32,12 @@ def create_app():
32
33
app = connexion.App(__name__, specification_dir='./swagger/')
34
# app.app.json_encoder = encoder.JSONEncoder
35
- application = app.app
+
36
app.add_api('swagger.yaml',
37
arguments={'title': 'Swagger Example Project'},
38
- base_path=application.config["APPLICATION_ROOT"])
39
-
+ base_path=CONFIG[environment].APPLICATION_ROOT)
40
+ application = app.app
41
application.config.from_object(CONFIG[environment])
42
db.init_app(application)
43
0 commit comments