You are here

vendor_stream_wrapper.routing.yml in Vendor Stream Wrapper 8

File

vendor_stream_wrapper.routing.yml
View source
  1. vendor_stream_wrapper.vendor_file_download:
  2. path: '/vendor_files/{filepath}'
  3. defaults:
  4. _controller: 'Drupal\vendor_stream_wrapper\Controller\VendorFileDownloadController::download'
  5. requirements:
  6. # Permissive regex to allow slashes in filepath see
  7. # http://symfony.com/doc/current/cookbook/routing/slash_in_parameter.html
  8. filepath: .+
  9. _permission: 'access content'