diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-01-25 02:59:27 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-01-24 20:59:27 +0200 |
commit | 892bfd0b19fb8c222abc4660c4f584ba0bf6972a (patch) | |
tree | 5d911f8077684112a4d98cf644ef07c8c1342eca /modules/setting | |
parent | 9a137faaaf02661910fdf9037c995e0a54228ad2 (diff) | |
download | gitea-892bfd0b19fb8c222abc4660c4f584ba0bf6972a.tar.gz gitea-892bfd0b19fb8c222abc4660c4f584ba0bf6972a.zip |
improve the releases api paging (#5831)
* improve the releases api paging
* add max limit on API paging
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index e561b4f96b..ec9fa02c25 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -557,9 +557,11 @@ var ( API = struct { EnableSwagger bool MaxResponseItems int + DefaultPagingNum int }{ EnableSwagger: true, MaxResponseItems: 50, + DefaultPagingNum: 30, } U2F = struct { |