1
0

chore(web): use config directly

(cherry picked from commit bcfd72c64545241b53fc8a69197cfc6a3f316d92)
This commit is contained in:
kolaente
2024-08-29 18:41:20 +02:00
parent d885b43328
commit 5fba4ed6ef
3 changed files with 4 additions and 11 deletions

View File

@ -58,7 +58,6 @@ import (
"time"
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/db"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/models"
"code.vikunja.io/api/pkg/modules/auth"
@ -124,7 +123,6 @@ func NewEcho() *echo.Echo {
AuthObject: auth.GetAuthFromClaims,
})
handler.SetLoggingProvider(log.GetLogger())
handler.SetMaxItemsPerPage(config.ServiceMaxItemsPerPage.GetInt())
return e
}