code: def endpoint(self, endpoint: str) -> Callable:
          
          def decorator(func: Callable) -> Callable:
              self.record_once(lambda state: state.register_endpoint(endpoint, func))
              return func
          return decorator
docs: Add an endpoint to the blueprint.
  
          This is designed to be used as a decorator, and has the same arguments
          as :meth:`~quart.Quart.endpoint`. An example usage,
  
          .. code-block:: python
  
              blueprint = Blueprint(__name__)
              @blueprint.endpoint('index')
              def index():
                  ...