mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Increase maximum page size to 500
One hundred is a sensible limit, but five hundred gives us a lot more head room. The entities are only small after all.
This commit is contained in:
@@ -1052,8 +1052,8 @@ func pageParams(c *gin.Context) (cursor string, perPage int) {
|
||||
cursor = c.Query("cursor")
|
||||
|
||||
perPage, _ = strconv.Atoi(c.Query("per_page"))
|
||||
if perPage > 100 {
|
||||
perPage = 100
|
||||
if perPage > 500 {
|
||||
perPage = 500
|
||||
} else if perPage <= 0 {
|
||||
perPage = 30
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user