Any is a shorthand for [RouterGroup.AddRoute] with "" as route method (aka. matches any method).
(path string, action func(e T) error)
| 129 | |
| 130 | // Any is a shorthand for [RouterGroup.AddRoute] with "" as route method (aka. matches any method). |
| 131 | func (group *RouterGroup[T]) Any(path string, action func(e T) error) *Route[T] { |
| 132 | return group.Route("", path, action) |
| 133 | } |
| 134 | |
| 135 | // GET is a shorthand for [RouterGroup.AddRoute] with GET as route method. |
| 136 | func (group *RouterGroup[T]) GET(path string, action func(e T) error) *Route[T] { |