Skip to content
Browse files

fixes 'Raw' links on endpoints

  • Loading branch information...
1 parent d4d55ac commit 548d670a1e68fdd378973dbd0f36a5935ca7aa89 @sdb sdb committed May 18, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 source/index.html.haml
  2. +1 −0 source/javascripts/swagger-service.js
View
2 source/index.html.haml
@@ -16,7 +16,7 @@
%a{:href => "#", :onclick => "Docs.expandOperationsForResource('${name}'); return false;"}
Expand Operations
%li
- %a{:href => "${baseUrl}${path_json}"} Raw
+ %a{:href => "${swaggerBaseUrl}${path_json}"} Raw
%ul.endpoints{:id => "${name}_endpoint_list", :style => "display:none"}
View
1 source/javascripts/swagger-service.js
@@ -65,6 +65,7 @@ function SwaggerService(discoveryUrl, _apiKey, statusCallback) {
this.path_json = this.path.replace("{format}", "json");
this.path_xml = this.path.replace("{format}", "xml");
this.baseUrl = globalBasePath;
+ this.swaggerBaseUrl = swaggerBasePath;
this.apiList = Api.sub();
this.modelList = ApiModel.sub();
},

0 comments on commit 548d670

Please sign in to comment.
Something went wrong with that request. Please try again.