~netlandish/gobwebs

e526138e13ee34d1b9f8bca056d7da20706b0d2d — Peter Sanchez 2 years ago b2d40d2
Adding Echo() helper to Server
1 files changed, 5 insertions(+), 0 deletions(-)

M server/server.go
M server/server.go => server/server.go +5 -0
@@ 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))