mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-12 23:08:23 +01:00
added eagerRequestDataCache middleware
This commit is contained in:
1 parent
177230a765
commit
6127350e91
3 files changed
+103
No files matched your search
@@ -121,6 +121,10 @@ func InitApi(app core.App) (*echo.Echo, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// note: it is after the OnBeforeServe hook to ensure that the implicit
|
||||
// cache is after any user custom defined middlewares
|
||||
e.Use(eagerRequestDataCache(app))
|
||||
|
||||
// catch all any route
|
||||
api.Any("/*", func(c echo.Context) error {
|
||||
return echo.ErrNotFound
|
||||
|
||||
Reference in new issue
Block a user