POST is a shorthand for [RouterGroup.AddRoute] with POST as route method.
(path string, action func(e T) error)
| 144 | |
| 145 | // POST is a shorthand for [RouterGroup.AddRoute] with POST as route method. |
| 146 | func (group *RouterGroup[T]) POST(path string, action func(e T) error) *Route[T] { |
| 147 | return group.Route(http.MethodPost, path, action) |
| 148 | } |
| 149 | |
| 150 | // DELETE is a shorthand for [RouterGroup.AddRoute] with DELETE as route method. |
| 151 | func (group *RouterGroup[T]) DELETE(path string, action func(e T) error) *Route[T] { |