Options registers a route for the Options HTTP Method. Returns a *Route and an error which will be filled if route wasn't registered successfully.
(relativePath string, handlersFn ...interface{})
| 231 | // |
| 232 | // Returns a *Route and an error which will be filled if route wasn't registered successfully. |
| 233 | func (api *APIContainer) Options(relativePath string, handlersFn ...interface{}) *Route { |
| 234 | return api.Handle(http.MethodOptions, relativePath, handlersFn...) |
| 235 | } |
| 236 | |
| 237 | // Patch registers a route for the Patch HTTP Method. |
| 238 | // |