Files
deployment-manager/internal/api/health.go
2026-02-01 20:22:29 +05:30

13 lines
276 B
Go

package api
import (
"encoding/json"
"net/http"
)
func (s *HTTPServer) handleHealth(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(map[string]string{"status": "ok"})
}