Handle registers a route to this Party. if empty method is passed then handler(s) are being registered to all methods, same as .Any. Returns a *Route, app will throw any errors later on.
(method string, relativePath string, handlers ...context.Handler)
| 538 | // |
| 539 | // Returns a *Route, app will throw any errors later on. |
| 540 | func (api *APIBuilder) Handle(method string, relativePath string, handlers ...context.Handler) *Route { |
| 541 | return api.handle(0, method, relativePath, handlers...) |
| 542 | } |
| 543 | |
| 544 | // handle registers a full route to this Party. |
| 545 | // Use Handle or Get, Post, Put, Delete and et.c. instead. |