-
Notifications
You must be signed in to change notification settings - Fork 1
/
collabora_online.routing.yml
86 lines (81 loc) · 2.07 KB
/
collabora_online.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
collabora-online.view:
path: '/cool/view/{media}'
defaults:
_controller: '\Drupal\collabora_online\Controller\ViewerController::editor'
_title: 'Collabora Online'
# The controller method has a boolean parameter '$edit'.
edit: false
options:
parameters:
media:
type: entity:media
edit:
type: boolean
requirements:
media: \d+
_entity_access: 'media.preview in collabora'
collabora-online.edit:
path: '/cool/edit/{media}'
defaults:
_controller: '\Drupal\collabora_online\Controller\ViewerController::editor'
_title: 'Collabora Online'
# The controller method has a boolean parameter '$edit'.
edit: true
options:
parameters:
media:
type: entity:media
edit:
type: boolean
requirements:
media: \d+
_entity_access: 'media.edit in collabora'
collabora-online.settings:
path: '/admin/config/cool/settings'
defaults:
_form: 'Drupal\collabora_online\Form\ConfigForm'
_title: 'Collabora Online configuration'
requirements:
_permission: 'administer site configuration'
collabora-online.wopi.info:
path: '/cool/wopi/files/{id}'
defaults:
_controller: '\Drupal\collabora_online\Controller\WopiController::wopi'
action: 'info'
methods: [ GET ]
requirements:
_permission: 'access content'
options:
parameters:
action:
type: string
id:
type: string
collabora-online.wopi.contents:
path: '/cool/wopi/files/{id}/contents'
defaults:
_controller: '\Drupal\collabora_online\Controller\WopiController::wopi'
action: 'content'
methods: [ GET ]
requirements:
_permission: 'access content'
options:
parameters:
action:
type: string
id:
type: string
collabora-online.wopi.save:
path: '/cool/wopi/files/{id}/contents'
defaults:
_controller: '\Drupal\collabora_online\Controller\WopiController::wopi'
action: 'save'
methods: [ POST ]
requirements:
_permission: 'access content'
options:
parameters:
action:
type: string
id:
type: string