package api import ( "fmt" "log" "net/http" ) func healthcheck(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) w.Header().Set("Content-Type", "application/json") fmt.Fprintf(w, "{\"status\": \"success\"}") log.Println("{\"endpoint\": \"/healthcheck\", \"status\": \"success\"}") }