diff --git a/website/docs/guide/routing.md b/website/docs/guide/routing.md index a65ae8dc..b4b271cc 100644 --- a/website/docs/guide/routing.md +++ b/website/docs/guide/routing.md @@ -30,7 +30,7 @@ If you want to register it for some methods use `Echo.Match(methods []string, pa Echo defines handler function as `func(echo.Context) error` where `echo.Context` primarily holds HTTP request and response interfaces. -## Match-any +## Match-any / wildcard Matches zero or more characters in the path. For example, pattern `/users/*` will match: @@ -40,6 +40,13 @@ match: - `/users/1/files/1` - `/users/anything...` +:::caution + +There can be only one effective match-any parameter in route. When route is added with multiple match-any +`/v1/*/images/*`. The router matches always the first `*` till the end of requst URL i.e. it works as `/v1/*`. + +::: + ## Path Matching Order - Static