code: public function load($resource, $type = null): RouteCollection
      {
          $routes = new RouteCollection();
  
          $defaults = [
              '_token_check' => true,
              '_controller' => 'Contao\CoreBundle\Controller\FrontendController::indexAction',
              '_scope' => ContaoCoreBundle::SCOPE_FRONTEND,
          ];
  
          $this->addFrontendRoute($routes, $defaults);
          $this->addIndexRoute($routes, $defaults);
  
          return $routes;
      }
docs: {@inheritdoc}