code: public function route(): RouteRegistration
      {
          $route = new RouteRegistration($this->router, $this, $this->defaults);
          $route->controller($this->options['controller'] ?? '');
  
          return $route;
      }
docs: Register a custom route.
  
  @return RouteRegistration