diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index 2fa1c85a41..9d9a660077 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -17,7 +17,6 @@ limitations under the License. package main import ( - "encoding/json" "fmt" "math/rand" "net/http" @@ -139,7 +138,6 @@ func main() { registerHealthz(nginx.HealthPath, ngx, mux) registerMetrics(reg, mux) - registerHandlers(mux) go startHTTPServer(conf.ListenPorts.Health, mux) @@ -253,14 +251,6 @@ func handleFatalInitError(err error) { err) } -func registerHandlers(mux *http.ServeMux) { - mux.HandleFunc("/build", func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) - b, _ := json.Marshal(version.String()) - w.Write(b) - }) -} - func registerHealthz(healthPath string, ic *controller.NGINXController, mux *http.ServeMux) { // expose health check endpoint (/healthz) healthz.InstallPathHandler(mux,