(rctx *Context)
| 485 | } |
| 486 | |
| 487 | func (mx *Mux) nextRoutePath(rctx *Context) string { |
| 488 | routePath := "/" |
| 489 | nx := len(rctx.routeParams.Keys) - 1 // index of last param in list |
| 490 | if nx >= 0 && rctx.routeParams.Keys[nx] == "*" && len(rctx.routeParams.Values) > nx { |
| 491 | routePath = "/" + rctx.routeParams.Values[nx] |
| 492 | } |
| 493 | return routePath |
| 494 | } |
| 495 | |
| 496 | // Recursively update data on child routers. |
| 497 | func (mx *Mux) updateSubRoutes(fn func(subMux *Mux)) { |