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 7ff3181 commit 54e776b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ handler.appendRoute("GET /creature/:name?type=:beast") { (name: String, beast: B
}
```

All other handlers can extract parameters from the request:
All other handlers can extract parameter values from the request:

```swift
func handle(request: HTTPRequest) async throws -> HTTPResonse {
let name = request.routeParameters["name"]
let beast = request.routeParameters["beast"]
let beast: Beast = request.routeParameters["beast"]
return HTTPResponse(statusCode: .ok)
}

Expand Down

0 comments on commit 54e776b

Please sign in to comment.