diff --git a/pkg/api/router.go b/pkg/api/router.go index e8f365b7de8..23fa482afbe 100644 --- a/pkg/api/router.go +++ b/pkg/api/router.go @@ -585,13 +585,3 @@ func (s *Service) MountAPIs() { web.FinalHandler(router), ) } - -func (s *Service) ListEndpoints() []string { - var routes []string - s.router.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error { - tpl, _ := route.GetPathTemplate() - routes = append(routes, tpl) - return nil - }) - return routes -} diff --git a/pkg/node/node.go b/pkg/node/node.go index 242de36d841..c2d4cc13e03 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -1028,10 +1028,6 @@ func NewBee( go func() { logger.Info("starting api server", "address", apiListener.Addr()) - routes := apiService.ListEndpoints() - for _, r := range routes { - logger.Debug("api endpoint registered", "path", r) - } if err := apiServer.Serve(apiListener); err != nil && !errors.Is(err, http.ErrServerClosed) { logger.Debug("api server failed to start", "error", err) logger.Error(nil, "api server failed to start")