summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-01-25 02:59:27 +0800
committerLauris BH <lauris@nix.lv>2019-01-24 20:59:27 +0200
commit892bfd0b19fb8c222abc4660c4f584ba0bf6972a (patch)
tree5d911f8077684112a4d98cf644ef07c8c1342eca /modules/setting
parent9a137faaaf02661910fdf9037c995e0a54228ad2 (diff)
downloadgitea-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.go2
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 {