Named Routing Parameters

vapor
feedback
vapor-4

#21

Oh yup. From the old docs

drop.get("users", Int.self) { request, userId in
    return "You requested User #\(userId)"
}

Totally forgot about that!

https://docs.vapor.codes/1.5/routing/parameters.html


(Nathan Harris) #22

I wonder if that's improved with all the improvements to the language and compiler since Vapor 1