summaryrefslogtreecommitdiffstats
path: root/api4/system.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/system.go')
-rw-r--r--api4/system.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/api4/system.go b/api4/system.go
index 0c0fc7d12..2ad408e13 100644
--- a/api4/system.go
+++ b/api4/system.go
@@ -45,7 +45,18 @@ func getSystemPing(c *Context, w http.ResponseWriter, r *http.Request) {
actualGoroutines := runtime.NumGoroutine()
if *utils.Cfg.ServiceSettings.GoroutineHealthThreshold <= 0 || actualGoroutines <= *utils.Cfg.ServiceSettings.GoroutineHealthThreshold {
- ReturnStatusOK(w)
+ m := make(map[string]string)
+ m[model.STATUS] = model.STATUS_OK
+
+ reqs := utils.Cfg.ClientRequirements
+ m["AndroidLatestVersion"] = reqs.AndroidLatestVersion
+ m["AndroidMinVersion"] = reqs.AndroidMinVersion
+ m["DesktopLatestVersion"] = reqs.DesktopLatestVersion
+ m["DesktopMinVersion"] = reqs.DesktopMinVersion
+ m["IosLatestVersion"] = reqs.IosLatestVersion
+ m["IosMinVersion"] = reqs.IosMinVersion
+
+ w.Write([]byte(model.MapToJson(m)))
} else {
rdata := map[string]string{}
rdata["status"] = "unhealthy"