func()

in internal/pkg/core/router/service.go [247:257]


func (rs *RouterService) registerLivelinessEndpoint() {
	// liveliness probe endpoint
	rs.router.HandleFunc("/livez", func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Content-Type", "application/json")
		w.WriteHeader(http.StatusOK)
		json.NewEncoder(w).Encode(map[string]interface{}{
			"status":    "UP",
			"timestamp": time.Now().Format(time.RFC3339),
		})
	})
}