diff --git a/src/autoscaler/api/publicapiserver/public_api_server.go b/src/autoscaler/api/publicapiserver/public_api_server.go index 5bb3765b6c..7bae65880e 100644 --- a/src/autoscaler/api/publicapiserver/public_api_server.go +++ b/src/autoscaler/api/publicapiserver/public_api_server.go @@ -102,14 +102,9 @@ func (s *PublicApiServer) CreateCFServer() (ifrit.Runner, error) { return nil, err } - mainRouter := mux.NewRouter() r := s.autoscalerRouter.GetRouter() - mainRouter.PathPrefix("/v2").Handler(r) - mainRouter.PathPrefix("/v1").Handler(r) - mainRouter.PathPrefix("/health").Handler(r) - mainRouter.PathPrefix("/").Handler(s.healthRouter) - return helpers.NewHTTPServer(s.logger, s.conf.VCAPServer, mainRouter) + return helpers.NewHTTPServer(s.logger, s.conf.VCAPServer, r) } func (s *PublicApiServer) CreateMtlsServer() (ifrit.Runner, error) {