def find_route_for(path, verb)
      # Ignoring the first char if path starts with '/'. This way the path of
      # 'http//localhost/' will be the same of 'http://localhost' (both will
      # be empty strings).
      path = path[1..-1] if path[0] == '/'
      route_id = verb + path
      route = routes[route_id]
      # If no route was found, set it to 'notfound' route (maintaining the
      # original verb).
      route = routes["#{verb}notfound"] if route == nil

      return route
    end
def find_route_for(path, verb)
      # Ignoring the first char if path starts with '/'. This way the path of
      # 'http//localhost/' will be the same of 'http://localhost' (both will
      # be empty strings).
      path = path[1..-1] if path[0] == '/'
      route_id = verb + path
      route = routes[route_id]
      # If no route was found, set it to 'notfound' route (maintaining the
      # original verb).
      route = routes["#{verb}notfound"] if route == nil

      return route
    end
Given a request, will parse it's path to find what it the apropriate
 controller to respond it.