epal.routing.yml 1.02 KB
Newer Older
1
2
3
4
5
6
epal_is_logged_in:
  path: '/epal/login/check'
  defaults:
    _controller: '\Drupal\epal\Controller\Login::helloWorld'
  requirements:
    _access: 'TRUE'
7
8
9
10
11
12
13
14
epal_entityapi_test:
  path: '/epal/entityapi/test'
  options:
    _auth: [ 'basic_auth' ]
  requirements:
    _user_is_logged_in: 'TRUE'
  defaults:
    _controller: '\Drupal\epal\Controller\Login::testQuery'
15
16
17
18
19
20
21
22
23
24
epal_auth_test:
  path: 'epal/auth/test'
  options:
    _auth: [ 'oauthost' ]
  defaults:
    _controller: '\Drupal\epal\Controller\Login::helloWorld'
    _title: 'Greeting'
  requirements:
    _permission: 'access content'
    _user_is_logged_in: 'TRUE'
Open Source Developer's avatar
Open Source Developer committed
25
current_user:
Open Source Developer's avatar
Open Source Developer committed
26
  path: '/epal/curuser/{token_name}'
Open Source Developer's avatar
Open Source Developer committed
27
28
  options: 
    _auth: [ 'basic_auth' ]
Open Source Developer's avatar
Open Source Developer committed
29
30
31
  defaults:
    _controller: '\Drupal\epal\Controller\CurrentUser::content'
  requirements:
Open Source Developer's avatar
Open Source Developer committed
32
    _access: 'TRUE'
33
34
35
36
37
38
39
40
41
epal.application_submit:
  path: '/epal/appsubmit'
  options: 
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\epal\Controller\ApplicationSubmit::appSubmit'
  requirements:
    _user_is_logged_in: 'TRUE'