We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd138f4 + d10f3a7 commit 3ae8223Copy full SHA for 3ae8223
routers.go
@@ -285,15 +285,15 @@ func echoHandlerWrite(c *echo.Context) {
285
func loadEcho(routes []route) http.Handler {
286
router := echo.New().Router
287
for _, r := range routes {
288
- router.Add(r.method, r.path, echoHandler, 0)
+ router.Add(r.method, r.path, echoHandler, nil)
289
}
290
return router
291
292
293
func loadEchoSingle(method, path string, handler echo.HandlerFunc) http.Handler {
294
e := echo.New()
295
e.MaxParam(20)
296
- e.Router.Add(method, path, echoHandler, 0)
+ e.Router.Add(method, path, echoHandler, nil)
297
return e.Router
298
299
0 commit comments