Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Jul 13, 2024
1 parent 7673faf commit 1586542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ let route = HTTPRoute("POST *", body: .json(where: "food == 'fish'"))

## Route Parameters

Routes can include named parameters within a path or query item using the `:` prefix. Any string supplied to this parameter will match like a wildcard `*`. Handlers can then use `request.routePamaters` to access the value of the string.
Routes can include named parameters within a path or query item using the `:` prefix. Any string supplied to this parameter will match the route, handlers can access the value of the string using `request.routePamaters`.

```swift
handler.appendRoute("GET /creature/:name?type=:beast") { request in
Expand Down

0 comments on commit 1586542

Please sign in to comment.