[auth] Fixed applying api key

This commit is contained in:
Anna Bodnia
2016-02-24 15:09:19 +02:00
parent 3b246024d7
commit 0644f7611a
14 changed files with 7264 additions and 1364 deletions

View File

@@ -88,7 +88,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
this.model.securityDefinitions = this.model.securityDefinitions || {};
if (this.model.securityDefinitions) {
this.authView = new SwaggerUi.Views.AuthView({model: this.model.securityDefinitions});
this.authView = new SwaggerUi.Views.AuthView({model: this.model.securityDefinitions, router: this.router});
this.$('.authorize-wrapper').append(this.authView.render().el);
}