conneg_test.routing.yml
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ conneg_test/ conneg_test.routing.yml
View source
- # Tests
- conneg.simpletest:
- path: conneg/simple.json
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::simple'
- requirements:
- _access: 'TRUE'
- conneg.html:
- path: conneg/html
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::html'
- requirements:
- _access: 'TRUE'
- conneg.simple_conneg:
- path: conneg/html
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'
- _format: 'json|xml'
- conneg.variable_with_period:
- path: conneg/plugin/{plugin_id}
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::variable'
- requirements:
- _access: 'TRUE'
- conneg.full_content_negotiation:
- path: conneg/negotiate
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.