Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
afdia authored Nov 18, 2016
1 parent 6f9d29b commit 93fbdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
// derive base path from window.location.pathname, set it to basePath and update footer
var fixedBase = "/" + window.location.pathname.split('/')[1] + "/rest";
var fixedBase = window.location.pathname.replace("swagger-ui","rest");
swaggerApi.setBasePath(fixedBase);
document.getElementsByClassName("footer")[0].getElementsByTagName("h4")[0].childNodes[2].data = ": " +fixedBase + ", ";
if(typeof initOAuth == "function") {
Expand Down

0 comments on commit 93fbdd8

Please sign in to comment.