Skip to content

Commit 3ae8223

Browse files
committed
Merge pull request #23 from vishr/master
Echo router call modified
2 parents cd138f4 + d10f3a7 commit 3ae8223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ func echoHandlerWrite(c *echo.Context) {
285285
func loadEcho(routes []route) http.Handler {
286286
router := echo.New().Router
287287
for _, r := range routes {
288-
router.Add(r.method, r.path, echoHandler, 0)
288+
router.Add(r.method, r.path, echoHandler, nil)
289289
}
290290
return router
291291
}
292292

293293
func loadEchoSingle(method, path string, handler echo.HandlerFunc) http.Handler {
294294
e := echo.New()
295295
e.MaxParam(20)
296-
e.Router.Add(method, path, echoHandler, 0)
296+
e.Router.Add(method, path, echoHandler, nil)
297297
return e.Router
298298
}
299299

0 commit comments

Comments
 (0)