Merge pull request #2993 from coreos-inc/joseph.schorr/QUAY-797/pagination-size
Allow size of pages in V2 api to be configurable
This commit is contained in:
commit
9f7b08d0ff
3 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,7 @@ def handle_registry_v2_exception(error):
|
|||
return response
|
||||
|
||||
|
||||
_MAX_RESULTS_PER_PAGE = 50
|
||||
_MAX_RESULTS_PER_PAGE = app.config.get('V2_PAGINATION_SIZE', 50)
|
||||
|
||||
|
||||
def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset',
|
||||
|
|
Reference in a new issue