code: def register(cls, *args, **kwargs):
          
          if cls.app is None:
              return register(*args, handler=cls, **kwargs)
          return cls.app.register(*args, handler=cls, **kwargs)
docs: Register view to handler.