(httpMethod, relativePath string, handlers HandlersChain)
| 84 | } |
| 85 | |
| 86 | func (group *RouterGroup) handle(httpMethod, relativePath string, handlers HandlersChain) IRoutes { |
| 87 | absolutePath := group.calculateAbsolutePath(relativePath) |
| 88 | handlers = group.combineHandlers(handlers) |
| 89 | group.engine.addRoute(httpMethod, absolutePath, handlers) |
| 90 | return group.returnObj() |
| 91 | } |
| 92 | |
| 93 | // Handle registers a new request handle and middleware with the given path and method. |
| 94 | // The last handler should be the real handler, the other ones should be middleware that can and should be shared among different routes. |
no test coverage detected