Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,11 +795,11 @@ await app.listen({ port: 8000 });
```

A route passed is converted to a regular expression using
[path-to-regexp](https://github.com/pillarjs/path-to-regexp), which means
parameters expressed in the pattern will be converted. `path-to-regexp` has
advanced usage which can create complex patterns which can be used for matching.
Check out the
[documentation for that library](https://github.com/pillarjs/path-to-regexp#parameters)
[path-to-regexp](https://github.com/pillarjs/path-to-regexp/tree/6.x), which
means parameters expressed in the pattern will be converted. `path-to-regexp`
has advanced usage which can create complex patterns which can be used for
matching. Check out the
[documentation for that library](https://github.com/pillarjs/path-to-regexp/tree/6.x#parameters)
if you have advanced use cases.

In most cases, the type of `context.params` is automatically inferred from the
Expand Down