def score_route(parts, path)
      score = 0
      pars  = {}

      if parts.length == path.length
        parts.each_with_index do |part, i|
          if part[0] == ':'
            score += 1
            pars["#{part[1..-1]}"] = path[i]
          elsif part == path[i].downcase
            score += 2
          end
        end
      end

      return score, pars
    end
def score_route(parts, path)
      score = 0
      pars  = {}

      if parts.length == path.length
        parts.each_with_index do |part, i|
          if part[0] == ':'
            score += 1
            pars["#{part[1..-1]}"] = path[i]
          elsif part == path[i].downcase
            score += 2
          end
        end
      end

      return score, pars
    end
Internal method to add a match score

 @param [String] parts Parts of a route
 @param [String] path Url to match