-
Notifications
You must be signed in to change notification settings - Fork 1
/
web_push_notification.routing.yml
62 lines (56 loc) · 2.07 KB
/
web_push_notification.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
web_push_notification.settings:
path: '/admin/config/services/web-push-notification'
defaults:
_title: 'Web push notification settings'
_form: 'Drupal\web_push_notification\Form\SettingsForm'
options:
_admin_route: TRUE
requirements:
_permission: 'administer web push notification settings'
web_push_notification.regenerate_keys:
path: '/admin/config/services/web-push-notification/regenerate'
defaults:
_title: 'Regenerate web push notification auth keys'
_form: '\Drupal\web_push_notification\Form\ConfirmRegenerateKeys'
options:
_admin_route: TRUE
requirements:
_permission: 'administer web push notification settings'
web_push_notification.bundle_configure:
path: '/admin/config/services/web-push-notification/{bundle}/configure'
defaults:
_title: 'Content type configuration'
_form: 'Drupal\web_push_notification\Form\BundleConfigForm'
options:
_admin_route: TRUE
requirements:
_permission: 'administer web push notification settings'
web_push_notification.test_notification:
path: '/admin/config/services/web-push-notification/test'
defaults:
_title: 'Test notification'
_form: 'Drupal\web_push_notification\Form\TestNotification'
requirements:
_permission: 'allow to send test notification'
web_push_notification.service_worker:
path: '/serviceworker-push'
defaults:
_controller: '\Drupal\web_push_notification\Controller\WebPushNotificationController::serviceWorker'
requirements:
_access: 'TRUE'
web_push_notification.subscribe:
path: '/push_notifications_subscribe'
defaults:
_controller: '\Drupal\web_push_notification\Controller\WebPushNotificationController::subscribe'
methods: [POST]
requirements:
_access: 'TRUE'
web_push_notification.clear_subscribe:
path: '/admin/config/services/web-push-notification/subscriptions/clear'
defaults:
_title: 'Clear push notification subscribers'
_form: '\Drupal\web_push_notification\Form\ConfirmClearSubscribers'
options:
_admin_route: TRUE
requirements:
_permission: 'administer web push notification subscriptions'