Oh yup. From the old docs
drop.get("users", Int.self) { request, userId in
return "You requested User #\(userId)"
}
Totally forgot about that!
Oh yup. From the old docs
drop.get("users", Int.self) { request, userId in
return "You requested User #\(userId)"
}
Totally forgot about that!
I wonder if that's improved with all the improvements to the language and compiler since Vapor 1
It looks so clean though