diff options
author | Piotr Orzechowski <piotr@orzechowski.tech> | 2018-07-28 02:19:01 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-07-28 03:19:01 +0300 |
commit | a74426d631e3311cc3c460ae9917f76f0221f4de (patch) | |
tree | 1343766d999308825f42bc0b67c1845a5e9e9546 /modules/setting | |
parent | 412583a3f28162c89e827fbb586319ac8eea9825 (diff) | |
download | gitea-a74426d631e3311cc3c460ae9917f76f0221f4de.tar.gz gitea-a74426d631e3311cc3c460ae9917f76f0221f4de.zip |
Swagger.v1.json template (#3572)
* Turn swagger.v1.json into template
* Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 396dec2546..1b9919404c 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -527,11 +527,11 @@ var ( // API settings API = struct { - EnableSwaggerEndpoint bool - MaxResponseItems int + EnableSwagger bool + MaxResponseItems int }{ - EnableSwaggerEndpoint: true, - MaxResponseItems: 50, + EnableSwagger: true, + MaxResponseItems: 50, } U2F = struct { |