[auth] fix Set petstore spec as default

This commit is contained in:
bodnia
2016-03-02 01:13:09 +02:00
committed by Anna Bodnia
parent 7dac0e9a91
commit e405c42465
5 changed files with 7 additions and 7 deletions

2
dist/index.html vendored
View File

@@ -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
View File

@@ -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'
});
},

File diff suppressed because one or more lines are too long

View File

@@ -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({

View File

@@ -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'
});
},