fixing trailing slash in url bug

This commit is contained in:
Eoin McAfee 2021-07-01 10:12:54 +01:00
parent 1e1ab2d04d
commit 914c3561cb

View file

@ -97,6 +97,7 @@ func (s Server) Handler() http.Handler {
r.Use(middleware.Recoverer)
r.Use(middleware.NoCache)
r.Use(logger.Middleware)
r.Use(middleware.RedirectSlashes)
sec := secure.New(s.Options)
r.Use(sec.Handler)