# Tests
content_negotiation.test:
  path: content_negotiation/simple.json
  defaults:
    _controller: '\Drupal\content_negotiation_test\Controller\TestController::simple'
  requirements:
    _access: 'TRUE'
content_negotiation.html:
  path: content_negotiation/html
  defaults:
    _controller: '\Drupal\content_negotiation_test\Controller\TestController::html'
  requirements:
    _access: 'TRUE'
content_negotiation.simple_content_negotiation:
  path: content_negotiation/html
  defaults:
    _controller: '\Drupal\content_negotiation_test\Controller\TestController::format'
  requirements:
    _access: 'TRUE'
    _format: 'json|xml'
content_negotiation.variable_with_period:
  path: content_negotiation/plugin/{plugin_id}
  defaults:
    _controller: '\Drupal\content_negotiation_test\Controller\TestController::variable'
  requirements:
    _access: 'TRUE'
content_negotiation.full_content_negotiation:
  path: content_negotiation/negotiate
  defaults:
    _controller: '\Drupal\content_negotiation_test\Controller\TestController::format'
  requirements:
    _access: 'TRUE'
