From de893777a4a1fe222cfd801a034ec9b8d36648c7 Mon Sep 17 00:00:00 2001 From: Adrian Wisaksana Date: Sun, 2 Oct 2016 21:07:07 +0800 Subject: [PATCH] Add explanation to import HTTP module --- guide/controllers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/controllers.md b/guide/controllers.md index 4ff57ae0..e6d4941d 100644 --- a/guide/controllers.md +++ b/guide/controllers.md @@ -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()