mirror of https://github.com/vapor/docs.git
Simplify
No need to add constraints here as it is implicit.
This commit is contained in:
parent
c9aabf939a
commit
5eb553707c
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue