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 /modules/setting | |
parent | 4c9d9c221a0628753f3dc16b469330ee096cbf18 (diff) | |
download | gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.tar.gz gitea-b104ab3ca1690f35d0674d3807681390e640e5c8.zip |
Add option to enable or disable swagger endpoints (#3502)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 338637836d..936dac85c4 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -515,9 +515,11 @@ var ( // API settings API = struct { - MaxResponseItems int + EnableSwaggerEndpoint bool + MaxResponseItems int }{ - MaxResponseItems: 50, + EnableSwaggerEndpoint: true, + MaxResponseItems: 50, } // I18n settings |