-
Notifications
You must be signed in to change notification settings - Fork 0
/
flysystem_gcs_cors.routing.yml
53 lines (53 loc) · 1.41 KB
/
flysystem_gcs_cors.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
flysystem_gcs_cors.admin_form:
path: '/admin/config/media/gcs-cors'
defaults:
_form: '\Drupal\flysystem_gcs_cors\Form\AdminForm'
_title: 'Google Cloud Storage CORS'
requirements:
_permission: 'administer gcs cors'
options:
_admin_route: TRUE
flysystem_gcs_cors.get:
path: '/ajax/gcs/{entity_type}/{bundle}/{entity_id}/{field}/{delta}/{file_name}'
defaults:
_title: 'GCS CORS Get Signed URL'
_controller: '\Drupal\flysystem_gcs_cors\Controller\Gcs::getSignedUrl'
requirements:
_custom_access: '\Drupal\flysystem_gcs_cors\Controller\Gcs::access'
options:
parameters:
entity_type:
type: string
bundle:
type: string
entity_id:
type: integer
field:
type: string
delta:
type: integer
file_name:
type: string
flysystem_gcs_cors.save:
path: '/ajax/gcs/{entity_type}/{bundle}/{entity_id}/{field}/{delta}/{file_name}/{file_size}'
defaults:
_title: 'GCS CORS Save File'
_controller: '\Drupal\flysystem_gcs_cors\Controller\Gcs::saveFile'
requirements:
_custom_access: '\Drupal\flysystem_gcs_cors\Controller\Gcs::access'
options:
parameters:
entity_type:
type: string
bundle:
type: string
entity_id:
type: integer
field:
type: string
delta:
type: integer
file_name:
type: string
file_size:
type: integer