epal.routing.yml 771 Bytes
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 26 27 28 29 30
current_user:
  path: '/epal/curuser'
  defaults:
    _controller: '\Drupal\epal\Controller\CurrentUser::content'
  requirements:
    _access: 'TRUE'