diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-09 09:36:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-09 09:36:31 +0100 |
commit | e0b56b7495e809581a1e6447794bf7573a78af56 (patch) | |
tree | 7bf3917b7109fc8d671c994b4f501fd020257b38 /server/initializers/constants.ts | |
parent | 240458d0c95133bfb03a3f695a1b4e5cb63e20ef (diff) | |
download | PeerTube-e0b56b7495e809581a1e6447794bf7573a78af56.tar.gz PeerTube-e0b56b7495e809581a1e6447794bf7573a78af56.tar.zst PeerTube-e0b56b7495e809581a1e6447794bf7573a78af56.zip |
Return an error on invalid count pagination
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index f4a2b358b..8461c7320 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -22,9 +22,16 @@ const API_VERSION = 'v1' | |||
22 | const PEERTUBE_VERSION = require(join(root(), 'package.json')).version | 22 | const PEERTUBE_VERSION = require(join(root(), 'package.json')).version |
23 | 23 | ||
24 | const PAGINATION = { | 24 | const PAGINATION = { |
25 | COUNT: { | 25 | GLOBAL: { |
26 | DEFAULT: 15, | 26 | COUNT: { |
27 | MAX: 100 | 27 | DEFAULT: 15, |
28 | MAX: 100 | ||
29 | } | ||
30 | }, | ||
31 | OUTBOX: { | ||
32 | COUNT: { | ||
33 | MAX: 50 | ||
34 | } | ||
28 | } | 35 | } |
29 | } | 36 | } |
30 | 37 | ||