Append swagger-auth global functions to window and don't break backward
This commit is contained in:
@@ -83,6 +83,13 @@
|
||||
console.log.apply(console, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
// don't break backward compatibility with previous versions
|
||||
window.authorizations = {
|
||||
add: swaggerUi.api.clientAuthorizations.add
|
||||
};
|
||||
window.ApiKeyAuthorization = SwaggerClient.ApiKeyAuthorization;
|
||||
window.PasswordAuthorization = SwaggerClient.PasswordAuthorization;
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -195,4 +195,4 @@ window.SwaggerUi = Backbone.Router.extend({
|
||||
|
||||
});
|
||||
|
||||
window.SwaggerUi.Views = {};
|
||||
window.SwaggerUi.Views = {};
|
||||
|
||||
Reference in New Issue
Block a user