Merge pull request #50 from beingadrian/master

Add explanation to import HTTP module
This commit is contained in:
Tanner 2016-10-03 15:06:04 -04:00 committed by GitHub
commit 084604ff83
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ Simple controllers don't need to conform to any protocols. You are free to desig
### Registering
The only required structure is the signature of each method in the controller. In order to register this method into the router, it must have a signature like `(Request) throws -> ResponseRepresentable`.
The only required structure is the signature of each method in the controller. In order to register this method into the router, it must have a signature like `(Request) throws -> ResponseRepresentable`. `Request` and `ResponseRepresentable` are made available by importing the `HTTP` module.
```swift
let hc = HelloController()