PATCH is a shorthand for [RouterGroup.AddRoute] with PATCH as route method.
(path string, action func(e T) error)
| 154 | |
| 155 | // PATCH is a shorthand for [RouterGroup.AddRoute] with PATCH as route method. |
| 156 | func (group *RouterGroup[T]) PATCH(path string, action func(e T) error) *Route[T] { |
| 157 | return group.Route(http.MethodPatch, path, action) |
| 158 | } |
| 159 | |
| 160 | // PUT is a shorthand for [RouterGroup.AddRoute] with PUT as route method. |
| 161 | func (group *RouterGroup[T]) PUT(path string, action func(e T) error) *Route[T] { |