Post defines a POST request route for the given pattern.
(pattern string)
| 222 | |
| 223 | // Post defines a POST request route for the given pattern. |
| 224 | func (api *API) Post(pattern string) (r *Route) { |
| 225 | return api.Route(http.MethodPost, pattern) |
| 226 | } |
| 227 | |
| 228 | // Put defines a PUT request route for the given pattern. |
| 229 | func (api *API) Put(pattern string) (r *Route) { |