mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-10 22:08:07 +01:00
(untested!) added temp backup api scaffoldings before introducing autobackups and rotations
This commit is contained in:
1 parent
60eee96034
commit
d3314e1e23
17 files changed
+914
-40
No files matched your search
+2
-1
@@ -113,6 +113,7 @@ func InitApi(app core.App) (*echo.Echo, error) {
|
||||
bindFileApi(app, api)
|
||||
bindRealtimeApi(app, api)
|
||||
bindLogsApi(app, api)
|
||||
bindBackupApi(app, api)
|
||||
bindHealthApi(app, api)
|
||||
|
||||
// trigger the custom BeforeServe hook for the created api router
|
||||
@@ -191,7 +192,7 @@ func bindStaticAdminUI(app core.App, e *echo.Echo) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
const totalAdminsCacheKey = "totalAdmins"
|
||||
const totalAdminsCacheKey = "@totalAdmins"
|
||||
|
||||
func updateTotalAdminsCache(app core.App) error {
|
||||
total, err := app.Dao().TotalAdmins()
|
||||
|
||||
Reference in new issue
Block a user