Skip to content

Commit 79f7aab

Browse files
committed
fix base_path
1 parent 7042733 commit 79f7aab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def create_app():
3232

3333
app = connexion.App(__name__, specification_dir='./swagger/')
3434
# app.app.json_encoder = encoder.JSONEncoder
35-
application = app.app
35+
3636
app.add_api('swagger.yaml',
3737
arguments={'title': 'Swagger Example Project'},
38-
base_path=application.config["APPLICATION_ROOT"])
39-
38+
base_path=CONFIG[environment].APPLICATION_ROOT)
4039

40+
application = app.app
4141
application.config.from_object(CONFIG[environment])
4242
db.init_app(application)
4343

0 commit comments

Comments
 (0)