-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsilverback_preview_link.routing.yml
40 lines (37 loc) · 1.24 KB
/
silverback_preview_link.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
silverback_preview_link.settings:
path: '/admin/config/content/silverback_preview_link'
defaults:
_form: '\Drupal\silverback_preview_link\Form\SettingsForm'
_title: 'Silverback preview link'
_description: 'Manage Preview link settings.'
requirements:
_permission: 'administer silverback preview link settings'
silverback_preview_link.preview.access:
path: '/preview/access'
defaults:
_controller: '\Drupal\silverback_preview_link\Controller\PreviewController::hasAccess'
methods: [POST]
requirements:
# Required for the refresh token.
_access: 'TRUE'
_format: 'json'
options:
_auth: ['oauth2']
no_cache: TRUE
silverback_preview_link.qr_code:
path: '/preview/qr-code/{base64_url}'
defaults:
_controller: '\Drupal\silverback_preview_link\Controller\PreviewController::getQRCode'
requirements:
# Keep it very generic, it's just to prevent anonymous access / bots.
_permission: 'access administration pages'
silverback_preview_link.preview_link.access:
path: '/preview/link-access'
defaults:
_controller: '\Drupal\silverback_preview_link\Controller\PreviewController::hasLinkAccess'
methods: [POST]
requirements:
_access: 'TRUE'
_format: 'json'
options:
no_cache: TRUE