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 64acb5c commit 6206a84
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 @@ -299,7 +299,7 @@ enum Beast: String, HTTPRouteParameterValue {
case dog
}

func handle(request: HTTPRequest) async throws -> HTTPResonse {
handler.appendRoute("GET /creature/:name?type=:beast") { request in
let name = request.routeParameters["name"]
let beast: Beast = request.routeParameters["beast"]
return HTTPResponse(statusCode: .ok)
Expand Down

0 comments on commit 6206a84

Please sign in to comment.