register all available, exported methods to handlers if possible.
()
| 404 | |
| 405 | // register all available, exported methods to handlers if possible. |
| 406 | func (c *ControllerActivator) parseMethods() { |
| 407 | n := c.Type.NumMethod() |
| 408 | for i := 0; i < n; i++ { |
| 409 | m := c.Type.Method(i) |
| 410 | c.parseMethod(m) |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | func (c *ControllerActivator) parseMethod(m reflect.Method) { |
| 415 | httpMethod, httpPath, err := parseMethod(c.app.Router.Macros(), m, c.isReservedMethod, c.app.customPathWordFunc) |
no test coverage detected