No need to add constraints here as it is implicit.
This commit is contained in:
Ashok Gelal 2017-01-15 13:24:06 -07:00 committed by GitHub
parent c9aabf939a
commit 5eb553707c
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import Routing
class V1Collection: RouteCollection {
typealias Wrapped = HTTP.Responder
func build<B: RouteBuilder where B.Value == Wrapped>(_ builder: B) {
func build<B: RouteBuilder>(_ builder: B) {
let v1 = builder.grouped("v1")
let users = v1.grouped("users")
let articles = v1.grouped("articles")