code: def _route(self, action, method):
          
  
          # First thing, determine the path for the method
          path = method._wsgi_path
          methods = None
          if path is None:
              map_rule = self.wsgi_method_map.get(method.__name__)
              if map_rule is None:
                  # Can't connect this method
                  LOG.warning("No path specified for action method %s() of "
                              "resource %s" % (method.__name__, self.wsgi_name))
                  return
  
              # Compute the path and the method list
              path = utils.norm_path(map_rule[0] % self.wsgi_name)
              methods = map_rule[1]
  
          # Compute route name
          name = '%s_%s' % (self.wsgi_name, action)
  
          # Set up path
          path = getattr(self, 'wsgi_path_prefix', '') + path
  
          # Build up the conditions
          conditions = {}
          if hasattr(method, '_wsgi_methods'):
              conditions['method'] = methods if methods else method._wsgi_methods
          if hasattr(method, '_wsgi_condition'):
              conditions['function'] = method._wsgi_condition
  
          # Create the route
          self.wsgi_mapper.connect(name, path,
                                   controller=self,
                                   action=action,
                                   conditions=conditions,
                                   **getattr(method, '_wsgi_keywords', {}))
docs: Given an action method, generates a route for it.