mirror of
https://github.com/labstack/echo.git
synced 2025-12-01 22:51:17 +02:00
StripTrailingSlash is now an option
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -17,7 +17,7 @@ func main() {
|
||||
e := echo.New()
|
||||
|
||||
// Debug mode
|
||||
e.SetDebug(true)
|
||||
e.Debug()
|
||||
|
||||
//------------
|
||||
// Middleware
|
||||
@@ -37,16 +37,6 @@ func main() {
|
||||
return false
|
||||
}))
|
||||
|
||||
//-------
|
||||
// Slash
|
||||
//-------
|
||||
|
||||
e.Use(mw.StripTrailingSlash())
|
||||
|
||||
// or
|
||||
|
||||
// e.Use(mw.RedirectToSlash())
|
||||
|
||||
// Gzip
|
||||
e.Use(mw.Gzip())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user