s3fs_cors.routing.yml in S3 File System CORS Upload 8
File
s3fs_cors.routing.yml
View source
- s3fs_cors.cors_key:
- path: /ajax/s3fs_cors_key/{directory}/{file_name}/{file_size}/{file_index}
- defaults:
- _title: 'S3FS CORS File Key'
- _controller: '\Drupal\s3fs_cors\Controller\AjaxController::getKey'
- requirements:
- _permission: 'access content'
- options:
- parameters:
- directory:
- type: string
- file_name:
- type: string
- file_size:
- type: integer
- file_index:
- type: integer
- s3fs_cors.cors_save:
- path: /ajax/s3fs_cors_save/{file_path}/{file_name}/{file_size}/{field_name}
- defaults:
- _title: 'S3FS CORS File Save'
- _controller: '\Drupal\s3fs_cors\Controller\AjaxController::saveFile'
- requirements:
- _permission: 'access content'
- options:
- parameters:
- file_path:
- type: string
- file_name:
- type: string
- file_size:
- type: integer
- field_name:
- type: string
- s3fs_cors.admin_form:
- path: /admin/config/media/s3fs/cors
- defaults:
- _title: 'CORS Upload'
- _form: \Drupal\s3fs_cors\Form\S3fsCorsAdminForm
- requirements:
- _permission: 'administer s3fs CORS'