package server import "github.com/go-chi/chi/v5" // Router exposes the router to the external tests, which add routes // of their own to it after SetupRoutes. func (s *Server) Router() *chi.Mux { return s.router } // MaxRequestBodyBytes exposes the router-wide body limit to the // external tests. const MaxRequestBodyBytes = maxRequestBodyBytes // ListenAddr exposes the address the server listens on to the // external tests. func (s *Server) ListenAddr() string { return s.newHTTPServer().Addr }