From e526138e13ee34d1b9f8bca056d7da20706b0d2d Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 20 Sep 2022 13:51:13 -0600 Subject: [PATCH] Adding Echo() helper to Server --- server/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/server.go b/server/server.go index a4d033e..6c7445c 100644 --- a/server/server.go +++ b/server/server.go @@ -382,6 +382,11 @@ func (s *Server) CSRFAddSkip(route string) { s.csrfSkip = append(s.csrfSkip, route) } +// Echo returns the servers *echo.Echo instance +func (s *Server) Echo() *echo.Echo { + return s.e +} + // Run will run the server func (s *Server) Run() { go s.e.Start(fmt.Sprintf("%s:%d", s.Config.ListenAddr, s.Config.ListenPort)) -- 2.45.2