aboutsummaryrefslogtreecommitdiffstats
path: root/custom
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 /custom
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 'custom')
-rw-r--r--custom/conf/app.ini.sample2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index 39513833e7..b89c5b5e96 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -622,6 +622,8 @@ MIN_INTERVAL = 10m
ENABLE_SWAGGER = true
; Max number of items in a page
MAX_RESPONSE_ITEMS = 50
+; Default paging number of api
+DEFAULT_PAGING_NUM = 30
[i18n]
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR