You are here

shurly_service.routing.yml in ShURLy 8

shurly_service/shurly_service.routing.yml

File

shurly_service/shurly_service.routing.yml
View source
  1. shurly_service.shorten:
  2. path: /shurly/api/shorten
  3. defaults:
  4. _controller: '\Drupal\shurly_service\Controller\DefaultController::shurly_service_shorten'
  5. requirements:
  6. _custom_access: '\Drupal\shurly_service\Controller\DefaultController::shurly_service_access_api_key'
  7. shurly_service.expand:
  8. path: /shurly/api/expand
  9. defaults:
  10. _controller: '\Drupal\shurly_service\Controller\DefaultController::shurly_service_expand'
  11. requirements:
  12. _access: 'true'