BasePath returns the base path of router group. For example, if v := router.Group("/rest/n/v1/api"), v.BasePath() is "/rest/n/v1/api".
()
| 80 | // BasePath returns the base path of router group. |
| 81 | // For example, if v := router.Group("/rest/n/v1/api"), v.BasePath() is "/rest/n/v1/api". |
| 82 | func (group *RouterGroup) BasePath() string { |
| 83 | return group.basePath |
| 84 | } |
| 85 | |
| 86 | func (group *RouterGroup) handle(httpMethod, relativePath string, handlers HandlersChain) IRoutes { |
| 87 | absolutePath := group.calculateAbsolutePath(relativePath) |
no outgoing calls