synced with master

This commit is contained in:
Gani Georgiev
2023-07-14 12:44:26 +03:00
3 changed files with 70 additions and 43 deletions
+1 -2
View File
@@ -49,7 +49,6 @@ func InitApi(app core.App) (*echo.Echo, error) {
e.Use(middleware.Recover())
e.Use(middleware.Secure())
e.Use(LoadAuthContext(app))
e.Use(eagerRequestDataCache(app))
// custom error handler
e.HTTPErrorHandler = func(c echo.Context, err error) {
@@ -121,7 +120,7 @@ func InitApi(app core.App) (*echo.Echo, error) {
bindStaticAdminUI(app, e)
// default routes
api := e.Group("/api")
api := e.Group("/api", eagerRequestDataCache(app))
bindSettingsApi(app, api)
bindAdminApi(app, api)
bindCollectionApi(app, api)