diff options
Diffstat (limited to 'pathrouter/choice.go')
| -rw-r--r-- | pathrouter/choice.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pathrouter/choice.go b/pathrouter/choice.go index 09026b8..d107785 100644 --- a/pathrouter/choice.go +++ b/pathrouter/choice.go @@ -48,9 +48,9 @@ func choice(matchers []realMatcher) Matcher { return realMatcher{ minLength: slices.Min(minLengths), maxLength: maxLength, - accept: func(path []string, vars map[string]string) HandlerFunc { + accept: func(path []string, rc Context) HandlerFunc { for _, m := range matchers { - hf := m.accept(path, vars) + hf := m.accept(path, rc) if hf != nil { return hf } |
