You are here

users_jwt.routing.yml in JSON Web Token Authentication (JWT) 8

modules/users_jwt/users_jwt.routing.yml

File

modules/users_jwt/users_jwt.routing.yml
View source
  1. users_jwt.key_add_form:
  2. path: '/user/{user}/jwt-keys/add/new'
  3. defaults:
  4. _form: '\Drupal\users_jwt\Form\UsersKeyForm'
  5. _title: 'User Key Add'
  6. requirements:
  7. user: '\d+'
  8. _entity_access: 'user.update'
  9. users_jwt.key_generate_form:
  10. path: '/user/{user}/jwt-keys/generate/new'
  11. defaults:
  12. _form: '\Drupal\users_jwt\Form\UsersGenerateKeyForm'
  13. _title: 'Generate New Key'
  14. requirements:
  15. user: '\d+'
  16. _entity_access: 'user.update'
  17. users_jwt.key_edit_form:
  18. path: '/user/{user}/jwt-keys/{key_id}/edit'
  19. defaults:
  20. _form: '\Drupal\users_jwt\Form\UsersKeyForm'
  21. _title: 'User Key Edit'
  22. requirements:
  23. user: '\d+'
  24. _entity_access: 'user.update'
  25. users_jwt.key_delete_form:
  26. path: '/user/{user}/jwt-keys/{key_id}/delete'
  27. defaults:
  28. _form: '\Drupal\users_jwt\Form\UsersKeyDeleteForm'
  29. _title: 'User Key Form'
  30. requirements:
  31. user: '\d+'
  32. _entity_access: 'user.update'
  33. users_jwt.key_list:
  34. path: '/user/{user}/jwt-keys'
  35. defaults:
  36. _controller: '\Drupal\users_jwt\Controller\KeyListController::listKeys'
  37. _title: 'JWT Keys'
  38. requirements:
  39. user: '\d+'
  40. _entity_access: 'user.update'