synced with master

This commit is contained in:
Gani Georgiev committed 2023-07-14 12:44:26 +03:00
commit 8e2246113a
3 files changed
+70 -43

No files matched your search

+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)