class Sinatra::Request

def route

def route
  @route ||= begin
    path = Rack::Utils.unescape(path_info)
    path.empty? ? "/" : path
  end
end