Merge pull request #2928 from catinred2/basePath

add basePathWithoutHost
This commit is contained in:
wing328 2016-05-21 16:06:17 +08:00
commit cd0d9f55c2
2 changed files with 2 additions and 0 deletions

View File

@ -486,6 +486,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
} }
bundle.put("swagger", this.swagger); bundle.put("swagger", this.swagger);
bundle.put("basePath", basePath); bundle.put("basePath", basePath);
bundle.put("basePathWithoutHost",basePathWithoutHost);
bundle.put("scheme", scheme); bundle.put("scheme", scheme);
bundle.put("contextPath", contextPath); bundle.put("contextPath", contextPath);
bundle.put("apiInfo", apis); bundle.put("apiInfo", apis);

View File

@ -14,6 +14,7 @@
{{#infoUrl}}<div class="app-desc">More information: <a href="{{{infoUrl}}}">{{{infoUrl}}}</a></div>{{/infoUrl}} {{#infoUrl}}<div class="app-desc">More information: <a href="{{{infoUrl}}}">{{{infoUrl}}}</a></div>{{/infoUrl}}
{{#infoEmail}}<div class="app-desc">Contact Info: <a href="{{{infoEmail}}}">{{{infoEmail}}}</a></div>{{/infoEmail}} {{#infoEmail}}<div class="app-desc">Contact Info: <a href="{{{infoEmail}}}">{{{infoEmail}}}</a></div>{{/infoEmail}}
{{#version}}<div class="app-desc">Version: {{{version}}}</div>{{/version}} {{#version}}<div class="app-desc">Version: {{{version}}}</div>{{/version}}
{{#basePathWithoutHost}}<div class="app-desc">BasePath:{{basePathWithoutHost}}</div>{{/basePathWithoutHost}}
<div class="license-info">{{{licenseInfo}}}</div> <div class="license-info">{{{licenseInfo}}}</div>
<div class="license-url">{{{licenseUrl}}}</div> <div class="license-url">{{{licenseUrl}}}</div>
<h2>Access</h2> <h2>Access</h2>