Skip to content

Commit ce8ae37

Browse files
authored
Merge pull request #15 from dtkav/initoauth
Include initOAuth() jinja configuration
2 parents ffedb04 + 5714719 commit ce8ae37

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

swagger_ui_bundle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44

55
__author__ = 'Daniel Grossmann-Kavanagh'
6-
__version__ = '0.0.7'
6+
__version__ = '0.0.8'
77

88
def get_path(rel):
99
return os.path.join(

swagger_ui_bundle/vendor/swagger-ui-3.30.0/index.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
],
5656
layout: "StandaloneLayout"
5757
})
58+
{% if initOAuth is defined %}
59+
ui.initOAuth(
60+
{{ initOAuth|tojson|safe }}
61+
)
62+
{% endif %}
5863
// End Swagger UI call region
5964
6065
window.ui = ui

0 commit comments

Comments
 (0)