Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
footer update
  • Loading branch information
afdia authored Jul 19, 2016
1 parent 3f34e99 commit 08ffc6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
// derive base path from window.location.pathname
swaggerApi.setBasePath("/" + window.location.pathname.split('/')[1] + "/rest")
// derive base path from window.location.pathname, set it to basePath and update footer
var fixedBase = "/" + window.location.pathname.split('/')[1] + "/rest";
swaggerApi.setBasePath(fixedBase);
document.getElementsByClassName("footer")[0].getElementsByTagName("h4")[0].childNodes[2].data = ": " +fixedBase + ", ";
if(typeof initOAuth == "function") {
initOAuth({
clientId: "your-client-id",
Expand Down

0 comments on commit 08ffc6c

Please sign in to comment.