package server import "net/http" // V2Handler returns an http.HandlerFunc that responds with 200 OK and // an empty JSON object, per the OCI Distribution Spec version check. func V2Handler() http.HandlerFunc { return func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte("{}")) } }