You are here

commerce_file.routing.yml in Commerce File 8.2

File

commerce_file.routing.yml
View source
  1. commerce_file.settings_form:
  2. path: '/admin/commerce/config/license/file'
  3. defaults:
  4. _title: File
  5. _form: '\Drupal\commerce_file\Form\SettingsForm'
  6. requirements:
  7. _permission: 'administer commerce_license'
  8. commerce_file.download:
  9. path: '/commerce-file/{file}/download'
  10. defaults:
  11. _controller: '\Drupal\commerce_file\Controller\FileDownloadController::download'
  12. _title: 'Download file'
  13. options:
  14. no_cache: TRUE
  15. parameters:
  16. file:
  17. type: 'entity:file'
  18. requirements:
  19. _entity_access: 'file.download'