mirror of https://github.com/vapor/docs.git
Merge pull request #186 from vapor/steffendsommer-patch-1
Update controllers.md
This commit is contained in:
commit
7942bf37c8
|
|
@ -74,7 +74,7 @@ final class UserController {
|
|||
return try User.all().makeJSON()
|
||||
}
|
||||
|
||||
func show(_ req: Request) -> ResponseRepresentable {
|
||||
func show(_ req: Request) throws -> ResponseRepresentable {
|
||||
let user = try req.parameters.next(User.self)
|
||||
return user
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue