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

yandexdisk.routing.yml
# Direct URL to Yandex.Disk files, for ex.:
# http://example.com/yandexdisk?file=username/path/to/file. Yandex.Disk service
# currently does not allow direct URL to file, so the only possible way to get
# one is to transfer the file. Modules should implement hook_file_download() to
# allow or deny downloading of specific file.
yandexdisk.file_download:
  path: '/yandexdisk'
  defaults:
    _controller: '\Drupal\system\FileDownloadController::download'
    scheme: yandexdisk
  requirements:
    _access: 'TRUE'
yandexdisk.admin:
  path: '/admin/config/services/yandex/disk'
  defaults:
    _title: 'Yandex.Disk'
    _form: '\Drupal\yandexdisk\Form\YandexDiskAdmin'
  requirements:
    _permission: 'administer yandex_oauth'

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

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