Skip to content

Commit

Permalink
Add note about wildcard routing limitations (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Apr 6, 2024
1 parent aa81fb6 commit df93f1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion website/docs/guide/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit df93f1f

Please sign in to comment.