mirror of
https://github.com/labstack/echo.git
synced 2025-07-05 00:58:47 +02:00
Add json tags to route struct
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@ -7,7 +7,7 @@ type (
|
||||
// request matching and URL path parameter parsing.
|
||||
Router struct {
|
||||
tree *node
|
||||
routes map[string]Route
|
||||
routes map[string]*Route
|
||||
echo *Echo
|
||||
}
|
||||
node struct {
|
||||
@ -47,7 +47,7 @@ func NewRouter(e *Echo) *Router {
|
||||
tree: &node{
|
||||
methodHandler: new(methodHandler),
|
||||
},
|
||||
routes: map[string]Route{},
|
||||
routes: map[string]*Route{},
|
||||
echo: e,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user