xmlsitemap.admin_search:
  path: '/admin/config/search/xmlsitemap'
  defaults:
    _entity_list: 'xmlsitemap'
    _title: 'XML Sitemap'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.admin_search_list:
  path: '/admin/config/search/xmlsitemap/list'
  defaults:
    _entity_list: 'xmlsitemap'
    _title: 'XML Sitemap'
  requirements:
    _permission: 'administer xmlsitemap'

entity.xmlsitemap.add_form:
  path: '/admin/config/search/xmlsitemap/add'
  defaults:
    _entity_form: 'xmlsitemap.add'
    _title: 'Add new XML Sitemap'
  requirements:
    _permission: 'administer xmlsitemap'

entity.xmlsitemap.edit_form:
  path: '/admin/config/search/xmlsitemap/{xmlsitemap}/edit'
  defaults:
    _entity_form: 'xmlsitemap.edit'
    _title: 'Edit XML Sitemap'
  requirements:
    _permission: 'administer xmlsitemap'

entity.xmlsitemap.delete_form:
  path: '/admin/config/search/xmlsitemap/{xmlsitemap}/delete'
  defaults:
    _entity_form: 'xmlsitemap.delete'
    _title: 'Delete XML Sitemap'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.admin_settings:
  path: '/admin/config/search/xmlsitemap/settings'
  defaults:
    _form: '\Drupal\xmlsitemap\Form\XmlSitemapSettingsForm'
    _title: 'Settings'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.entities_settings:
  path: '/admin/config/search/xmlsitemap/entities/settings'
  defaults:
    _form: '\Drupal\xmlsitemap\Form\XmlSitemapEntitiesSettingsForm'
    _title: 'Custom Entities Settings'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.admin_settings_bundle:
  path: '/admin/config/search/xmlsitemap/settings/{entity}/{bundle}'
  defaults:
    _form: '\Drupal\xmlsitemap\Form\XmlSitemapLinkBundleSettingsForm'
    _title: 'Link Bundle Settings'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.admin_rebuild:
  path: '/admin/config/search/xmlsitemap/rebuild'
  defaults:
    _form: '\Drupal\xmlsitemap\Form\XmlSitemapRebuildForm'
    _title: 'Rebuild links'
  requirements:
    _permission: 'administer xmlsitemap'

xmlsitemap.sitemap_xml:
  path: '/sitemap.xml'
  defaults:
    _controller: '\Drupal\xmlsitemap\Controller\XmlSitemapController::renderSitemapXml'
    _title: 'Sitemap XML'
  requirements:
    # Access is open because crawlers need to be able to access the sitemap.
    _access: 'TRUE'
  options:
    # Bypass the page cache for this route because it may contain large files.
    no_cache: 'TRUE'

xmlsitemap.sitemap_xsl:
  path: '/sitemap.xsl'
  defaults:
    _controller: '\Drupal\xmlsitemap\Controller\XmlSitemapController::renderSitemapXsl'
    _title: 'Sitemap XSL'
  requirements:
    # Access is open because crawlers need to be able to access the sitemap XSL.
    _access: 'TRUE'
