basic_auth_test.routing.yml 443 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
basic_auth_test.state.modify:
  path: '/basic_auth_test/state/modify'
  defaults:
    _controller: '\Drupal\basic_auth_test\BasicAuthTestController::modifyState'
  options:
    _auth:
      - basic_auth
  requirements:
    _user_is_logged_in: 'TRUE'

basic_auth_test.state.read:
  path: '/basic_auth_test/state/read'
  defaults:
    _controller: '\Drupal\basic_auth_test\BasicAuthTestController::readState'
  requirements:
    _access: 'TRUE'