Skip to content

Commit b9fba1c

Browse files
Fix missing Swagger config
1 parent 95ac104 commit b9fba1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/backend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def __call__(self, environ, start_response):
7676

7777
app.wsgi_app = ReverseProxied(app.wsgi_app)
7878

79+
# Initialize Swagger config if not exists.
80+
if 'SWAGGER' not in app.config:
81+
app.config['SWAGGER'] = {}
82+
7983
app.config['SWAGGER']['favicon'] = "https://assets.webis.de/img/favicon.png"
8084

8185
swagger_config = {

0 commit comments

Comments
 (0)