file_encrypt-8.x-1.x-dev/file_encrypt.routing.yml

file_encrypt.routing.yml
file_encrypt.file_download:
  path: '/encrypt/files'
  defaults:
    _controller: 'Drupal\file_encrypt\Controller\FileDownloadController::download'
    scheme: encrypt
  requirements:
    _access: 'TRUE'
image.style_encrypt:
  path: '/encrypt/files/styles/{image_style}/{scheme}'
  defaults:
    _controller:  '\Drupal\file_encrypt\Controller\ImageStyleDownloadController::deliver'
  requirements:
    _access: 'TRUE'
system.encrypt_file_download:
  path: '/encrypt/files/{filepath}'
  defaults:
    _controller: 'Drupal\system\FileDownloadController::download'
    scheme: encrypt
  requirements:
    # Permissive regex to allow slashes in filepath see
    # http://symfony.com/doc/current/cookbook/routing/slash_in_parameter.html
    filepath: .+
    _access: 'TRUE'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc