(m reflect.Method)
| 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) |
| 416 | if err != nil { |
| 417 | if err != errSkip { |
| 418 | c.logErrorf("MVC: fail to parse the route path and HTTP method for '%s.%s': %v", c.fullName, m.Name, err) |
| 419 | } |
| 420 | |
| 421 | return |
| 422 | } |
| 423 | |
| 424 | c.Handle(httpMethod, httpPath, m.Name) |
| 425 | } |
| 426 | |
| 427 | func (c *ControllerActivator) logErrorf(format string, args ...interface{}) { |
| 428 | c.Router().Logger().Errorf(format, args...) |
no test coverage detected