mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-11 08:47:27 +02:00
synced with master
This commit is contained in:
commit
8e2246113a
3 files changed
+70
-43
No files matched your search
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user