Skip to content

Commit df93f1f

Browse files
authored
Add note about wildcard routing limitations (#336)
1 parent aa81fb6 commit df93f1f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

website/docs/guide/routing.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you want to register it for some methods use `Echo.Match(methods []string, pa
3030
Echo defines handler function as `func(echo.Context) error` where `echo.Context` primarily
3131
holds HTTP request and response interfaces.
3232

33-
## Match-any
33+
## Match-any / wildcard
3434

3535
Matches zero or more characters in the path. For example, pattern `/users/*` will
3636
match:
@@ -40,6 +40,13 @@ match:
4040
- `/users/1/files/1`
4141
- `/users/anything...`
4242

43+
:::caution
44+
45+
There can be only one effective match-any parameter in route. When route is added with multiple match-any
46+
`/v1/*/images/*`. The router matches always the first `*` till the end of requst URL i.e. it works as `/v1/*`.
47+
48+
:::
49+
4350
## Path Matching Order
4451

4552
- Static

0 commit comments

Comments
 (0)