code: def _setup_rest_dispatcher(self):
          
          for _, method in inspect.getmembers(self, inspect.isroutine):
              try:
                  config = getattr(method, HTTP_ROUTE_ATTRIBUTE)
              except AttributeError:
                  # Not a REST method
                  continue
  
              for route in config["routes"]:
                  pattern, arguments = self.__convert_route(route)
                  self.__methods_args.setdefault(method, {}).update(arguments)
                  for http_verb in config["methods"]:
                      self.__routes.setdefault(http_verb, {})[pattern] = method
docs: Finds all methods to call when handling a route