Added method to set the max number of items per page
This commit is contained in:
parent
23a3d14517
commit
8edfc5d33c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue