added authorizations

This commit is contained in:
Tony Tam
2015-05-14 08:56:42 -04:00
parent eb70c736df
commit d5c79f84f6

View File

@@ -90,7 +90,9 @@ window.SwaggerUi = Backbone.Router.extend({
if (url && url.indexOf('http') !== 0) {
url = this.buildUrl(window.location.href.toString(), url);
}
if(this.api) {
this.options.authorizations = this.api.clientAuthorizations;
}
this.options.url = url;
this.headerView.update(url);