Skip to content

Commit 9ad8575

Browse files
docs: update README.md
1 parent a041c43 commit 9ad8575

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,10 @@ type Routes interface {
249249
```
250250

251251
Each routing method accepts a URL `pattern` and chain of `handlers`. The URL pattern
252-
supports named params (ie. `/users/{userID}`) and wildcards (ie. `/admin/*`). URL parameters
253-
can be fetched at runtime by calling `chi.URLParam(r, "userID")` for named parameters
254-
and `chi.URLParam(r, "*")` for a wildcard parameter.
252+
supports named params (ie. `/users/{userID}`), named path params that can contain slashes
253+
(ie. `/files/{path:*}` or `/files/{path:+}`), and wildcards (ie. `/admin/*`). URL
254+
parameters can be fetched at runtime by calling `chi.URLParam(r, "userID")` for named
255+
parameters and `chi.URLParam(r, "*")` for a wildcard parameter.
255256

256257

257258
### Middleware handlers

0 commit comments

Comments
 (0)