feat: expose files storage health detail
This commit is contained in:
@@ -55,7 +55,7 @@ func main() {
|
||||
slog.Warn("ensure bucket failed", "error", err)
|
||||
}
|
||||
|
||||
healthH := handler.NewHealthHandler(pool)
|
||||
healthH := handler.NewHealthHandler(pool, store)
|
||||
nodeRepo := repository.NewNodeRepository(pool)
|
||||
nodeH := handler.NewNodeHandler(cfg, nodeRepo, store)
|
||||
go runTrashPurger(ctx, nodeRepo, store)
|
||||
@@ -67,6 +67,7 @@ func main() {
|
||||
|
||||
r.Get("/healthz", healthH.Healthz)
|
||||
r.Get("/readyz", healthH.Readyz)
|
||||
r.Get("/health/detail", healthH.Detail)
|
||||
|
||||
mountFilesAPI := func(r chi.Router) {
|
||||
r.Get("/nodes", nodeH.List)
|
||||
|
||||
Reference in New Issue
Block a user