Instance Method
route(path:parameters:)
Routes a path, returning the best-matching output and collecting any dynamic parameters.
func route(path: [String], parameters: inout Parameters) -> Output?
Parameters
pathRaw path segments.
parametersWill collect dynamic parameter values.
Return Value
Output of matching route, if found.
Discussion
var params = Parameters()
router.route(path: ["users", "Vapor"], parameters: ¶ms)