Added method to set the max number of items per page

This commit is contained in:
kolaente 2019-10-22 21:56:05 +02:00
parent 23a3d14517
commit 8edfc5d33c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -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
}