mirror of https://github.com/vapor/docs.git
Merge pull request #50 from beingadrian/master
Add explanation to import HTTP module
This commit is contained in:
commit
084604ff83
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue