code: def add_url_rule(
              self,
              path: str,
              endpoint: Optional[str]=None,
              view_func: Optional[Callable]=None,
              methods: Optional[Iterable[str]]=None,
              defaults: Optional[dict]=None,
              host: Optional[str]=None,
              subdomain: Optional[str]=None,
              *,
              provide_automatic_options: Optional[bool]=None,
              is_websocket: bool=False,
              strict_slashes: bool=True,
      ) -> None:
          
          endpoint = endpoint or view_func.__name__
          if '.' in endpoint:
              raise ValueError('Blueprint endpoints should not contain periods')
          self.record(
              lambda state: state.add_url_rule(
                  path, endpoint, view_func, methods, defaults, host, self.subdomain,
                  provide_automatic_options=provide_automatic_options, is_websocket=is_websocket,
                  strict_slashes=strict_slashes,
              ),
          )
docs: Add a route/url rule to the blueprint.
  
          This is designed to be used on the blueprint directly, and
          has the same arguments as
          :meth:`~quart.Quart.add_url_rule`. An example usage,
  
          .. code-block:: python
  
              def route():
                  ...
  
              blueprint = Blueprint(__name__)
              blueprint.add_url_rule('/', route)