diff --git a/handler/config.go b/handler/config.go index ef2185e..b961138 100644 --- a/handler/config.go +++ b/handler/config.go @@ -43,3 +43,8 @@ func SetAuthProvider(provider *web.Auths) { func SetLoggingProvider(logger *logging.Logger) { config.LoggingProvider = logger } + +// SetMaxItemsPerPage sets the max number of items per page in the config +func SetMaxItemsPerPage(maxItemsPerPage int) { + config.MaxItemsPerPage = maxItemsPerPage +}