You are here

decoupled_router.routing.yml in Decoupled Router 2.x

Same filename and directory in other branches
  1. 8 decoupled_router.routing.yml

File

decoupled_router.routing.yml
View source
  1. decoupled_router.path_translation:
  2. path: '/router/translate-path'
  3. defaults:
  4. _title: 'Translates an incoming path into a formatted response.'
  5. _controller: '\Drupal\decoupled_router\Controller\PathTranslator::translate'
  6. methods: [GET]
  7. options:
  8. _auth: ['basic_auth', 'cookie', 'oauth2']
  9. requirements:
  10. _permission: 'access content'
  11. _format: json