diff options
author | Piotr Orzechowski <piotr@orzechowski.tech> | 2018-02-14 05:46:00 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-02-14 06:46:00 +0200 |
commit | b104ab3ca1690f35d0674d3807681390e640e5c8 (patch) | |
tree | dcc2018a27fbc6e6455abafe632660c2a6289137 /templates | |
parent | 4c9d9c221a0628753f3dc16b469330ee096cbf18 (diff) | |
download | gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.tar.gz gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.zip |
Add option to enable or disable swagger endpoints (#3502)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/footer.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 70691659ff..18d59d92c5 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -29,7 +29,7 @@ </div> </div> <a href="{{AppSubUrl}}/vendor/librejs.html" data-jslicense="1">JavaScript licenses</a> - <a href="{{AppSubUrl}}/api/swagger">API</a> + {{if .EnableSwaggerEndpoint}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}} <a target="_blank" rel="noopener" href="https://gitea.io">{{.i18n.Tr "website"}}</a> {{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}} </div> |