class ActionDispatch::Journey::Router

def find_routes(req)

def find_routes(req)
  routes = filter_routes(req.path_info).concat custom_routes.find_all { |r|
    r.path.match(req.path_info)
  }
  routes =
    if req.head?
      match_head_routes(routes, req)
    else
      match_routes(routes, req)
    end
  routes.sort_by!(&:precedence)
  routes.map! { |r|
    match_data = r.path.match(req.path_info)
    path_parameters = {}
    match_data.names.zip(match_data.captures) { |name, val|
      path_parameters[name.to_sym] = Utils.unescape_uri(val) if val
    }
    [match_data, path_parameters, r]
  }
end