Merge pull request #317 from TheNorthEestern/patch-2

Update routing.md
This commit is contained in:
Tim 2018-05-07 18:37:18 +01:00 committed by GitHub
commit 8a007e50c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ you want to get an item with a supplied identifier, e.g., `GET /users/:id`
```swift
router.get("users", Int.parameter) { req -> String in
let id = try req.parameter(Int.self)
let id = try req.parameters.next(Int.self)
return "requested id #\(id)"
}
```