-
Notifications
You must be signed in to change notification settings - Fork 0
/
social_post_linkedin.routing.yml
35 lines (32 loc) · 1.19 KB
/
social_post_linkedin.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
social_post_linkedin.settings_form:
path: '/admin/config/social-api/social-post/linkedin'
defaults:
_title: 'LinkedIn Settings'
_form: 'Drupal\social_post_linkedin\Form\LinkedInPostSettingsForm'
requirements:
_permission: 'administer social api autoposting'
# User collection route.
social_post_linkedin.user.collection:
path: '/admin/config/social-api/social-post/linkedin/users'
defaults:
_controller: 'Drupal\social_post_linkedin\Controller\LinkedInPostController::buildList'
provider: 'linkedin'
requirements:
_permission: 'view social post user entities'
# Routes for authentication
social_post_linkedin.redirect_to_linkedin:
path: '/user/social-post/linkedin/auth'
defaults:
_controller: 'Drupal\social_post_linkedin\Controller\LinkedInPostController::redirectToProvider'
requirements:
_permission: 'perform linkedin autoposting tasks'
options:
no_cache: TRUE
social_post_linkedin.callback:
path: '/user/social-post/linkedin/auth/callback'
defaults:
_controller: 'Drupal\social_post_linkedin\Controller\LinkedInPostController::callback'
requirements:
_permission: 'perform linkedin autoposting tasks'
options:
no_cache: TRUE