v0.1.26: версия в /health, admin health и UI; ldflags VERSION; Makefile build фикс

This commit is contained in:
“Naeel”
2026-08-14 08:19:14 +04:00
parent 166baa9a98
commit 3a105de05b
6 changed files with 31 additions and 6 deletions
+3 -1
View File
@@ -19,6 +19,7 @@ import (
sqs "shared-sqs/app/gosqs"
"shared-sqs/app/interfaces"
"shared-sqs/app/metrics"
"shared-sqs/app/models"
"shared-sqs/app/tenant"
"shared-sqs/app/ui"
@@ -125,8 +126,9 @@ var routingTableV1 = map[string]func(r *http.Request) (int, interfaces.AbstractR
}
func health(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
fmt.Fprint(w, "OK")
fmt.Fprintf(w, `{"status":"ok","version":%q}`, models.Version)
}
func actionHandler(w http.ResponseWriter, req *http.Request) {