code: def bind(cls, app, *paths, methods=None, name=None, router=None, view=None):
          
          cls.app = app
          if cls.app is not None:
              for _, m in inspect.getmembers(cls, predicate=inspect.isfunction):
                  if not hasattr(m, ROUTE_PARAMS_ATTR):
                      continue
                  paths_, methods_, name_ = getattr(m, ROUTE_PARAMS_ATTR)
                  name_ = name_ or ("%s.%s" % (cls.name, m.__name__))
                  delattr(m, ROUTE_PARAMS_ATTR)
                  cls.app.register(*paths_, methods=methods_, name=name_, handler=cls)(m)
  
          @coroutine
          @functools.wraps(cls)
          def handler(request):
              return cls().dispatch(request, view=view)
  
          if not paths:
              paths = ["/%s" % cls.__name__]
  
          return routes_register(
              app, handler, *paths, methods=methods, router=router, name=name or cls.name)
docs: Bind to the given application.