Skip to content

Commit

Permalink
Removes subrouter in api server
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Nov 25, 2024
1 parent 924f475 commit 532722b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/autoscaler/api/publicapiserver/public_api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 532722b

Please sign in to comment.