File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ const (
224224
225225const (
226226 // Version of Echo
227- Version = "4.1.4 "
227+ Version = "4.1.5 "
228228 website = "https://echo.labstack.com"
229229 // http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
230230 banner = `
Original file line number Diff line number Diff line change @@ -25,11 +25,8 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
2525 }
2626 // Allow all requests to reach the group as they might get dropped if router
2727 // doesn't find a match, making none of the group middleware process.
28- for _ , p := range []string {"" , "/*" } {
29- g .Any (p , func (c Context ) error {
30- return NotFoundHandler (c )
31- })
32- }
28+ g .Any ("" , NotFoundHandler )
29+ g .Any ("/*" , NotFoundHandler )
3330}
3431
3532// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func NewRouter(e *Echo) *Router {
5757func (r * Router ) Add (method , path string , h HandlerFunc ) {
5858 // Validate path
5959 if path == "" {
60- panic ( "echo: path cannot be empty" )
60+ path = "/"
6161 }
6262 if path [0 ] != '/' {
6363 path = "/" + path
You can’t perform that action at this time.
0 commit comments