[auth] fix Set petstore spec as default
This commit is contained in:
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -36,7 +36,7 @@
|
||||
if (url && url.length > 1) {
|
||||
url = decodeURIComponent(url[1]);
|
||||
} else {
|
||||
url = "http://localhost:3001/swagger.json";
|
||||
url = "http://petstore.swagger.io/v2/swagger.json";
|
||||
}
|
||||
|
||||
hljs.configure({
|
||||
|
||||
6
dist/swagger-ui.js
vendored
6
dist/swagger-ui.js
vendored
@@ -25084,7 +25084,7 @@ SwaggerUi.Views.ApiKeyButton = Backbone.View.extend({ // TODO: append this to gl
|
||||
|
||||
clickLogout: function () {
|
||||
window.swaggerUi.api.clientAuthorizations.remove(this.model.name);
|
||||
this.remove();
|
||||
this.router.load();
|
||||
}
|
||||
|
||||
});
|
||||
@@ -25219,7 +25219,7 @@ SwaggerUi.Views.BasicAuthButton = Backbone.View.extend({
|
||||
|
||||
clickLogout: function () {
|
||||
window.swaggerUi.api.clientAuthorizations.remove(this.model.name);
|
||||
this.remove();
|
||||
this.router.load();
|
||||
}
|
||||
|
||||
});
|
||||
@@ -25248,7 +25248,7 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
||||
|
||||
showPetStore: function(){
|
||||
this.trigger('update-swagger-ui', {
|
||||
url:'http://localhost:3001/swagger.json'
|
||||
url:'http://petstore.swagger.io/v2/swagger.json'
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -36,7 +36,7 @@
|
||||
if (url && url.length > 1) {
|
||||
url = decodeURIComponent(url[1]);
|
||||
} else {
|
||||
url = "http://localhost:3001/swagger.json";
|
||||
url = "http://petstore.swagger.io/v2/swagger.json";
|
||||
}
|
||||
|
||||
hljs.configure({
|
||||
|
||||
@@ -12,7 +12,7 @@ SwaggerUi.Views.HeaderView = Backbone.View.extend({
|
||||
|
||||
showPetStore: function(){
|
||||
this.trigger('update-swagger-ui', {
|
||||
url:'http://localhost:3001/swagger.json'
|
||||
url:'http://petstore.swagger.io/v2/swagger.json'
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user