more progress
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-28 05:33:52 +01:00
parent 5fc22c36b0
commit 46b67f8a6e
5 changed files with 55 additions and 23 deletions

View File

@@ -20,10 +20,10 @@ func (s *Handlers) handleHealthCheck() http.HandlerFunc {
Status: "ok",
Now: time.Now().UTC().Format(time.RFC3339Nano),
UptimeSeconds: int64(s.uptime().Seconds()),
UptimeHuman: s.uptime().String(),
Maintenance: s.maintenance(),
Appname: s.appname,
Version: s.version,
UptimeHuman: s.params.Server.uptime().String(),
Maintenance: s.params.Server.MaintenanceMode(),
Appname: s.params.Globals.Appname,
Version: s.params.Globals.Version,
}
s.respondJSON(w, req, resp, 200)
}