Endpoint change
All checks were successful
CI Pipeline for the Go API / Kubernetes Smoke Test (push) Successful in 14s
CI Pipeline for the Go API / Go Vet (basic static check) (push) Successful in 17s
CI Pipeline for the Go API / Docker Image Build Test (push) Successful in 26s
CI Pipeline for the Go API / Go Build & Cross-Compile (push) Successful in 31s
CI Pipeline for the Go API / Push Image to Gitea Registry (push) Successful in 17s
CI Pipeline for the Go API / Kubernetes Deployment (push) Successful in 5s
All checks were successful
CI Pipeline for the Go API / Kubernetes Smoke Test (push) Successful in 14s
CI Pipeline for the Go API / Go Vet (basic static check) (push) Successful in 17s
CI Pipeline for the Go API / Docker Image Build Test (push) Successful in 26s
CI Pipeline for the Go API / Go Build & Cross-Compile (push) Successful in 31s
CI Pipeline for the Go API / Push Image to Gitea Registry (push) Successful in 17s
CI Pipeline for the Go API / Kubernetes Deployment (push) Successful in 5s
This commit is contained in:
2
main.go
2
main.go
@@ -22,7 +22,7 @@ type AddResponse struct {
|
|||||||
|
|
||||||
func healthHandler(w http.ResponseWriter, r *http.Request) {
|
func healthHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(HealthResponse{Status: "ok"})
|
json.NewEncoder(w).Encode(HealthResponse{Status: "healthy"})
|
||||||
}
|
}
|
||||||
|
|
||||||
func addHandler(w http.ResponseWriter, r *http.Request) {
|
func addHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user