From 8edfc5d33c79ec1b7f5f1b1da47feda84ab164d7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 22 Oct 2019 21:56:05 +0200 Subject: [PATCH] Added method to set the max number of items per page --- handler/config.go | 5 +++++ 1 file changed, 5 insertions(+) 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 +}