You are here

autoban.routing.yml in Automatic IP ban (Autoban) 8

File

autoban.routing.yml
View source
  1. entity.autoban.list:
  2. path: '/admin/config/people/autoban'
  3. defaults:
  4. _entity_list: 'autoban'
  5. _title: 'Autoban rules list'
  6. requirements:
  7. _permission: 'administer autoban'
  8. entity.autoban.add_form:
  9. path: '/admin/config/people/autoban/add/{rule}'
  10. defaults:
  11. _title: 'Add autoban rule'
  12. _entity_form: autoban.add
  13. rule: ''
  14. requirements:
  15. _entity_create_access: autoban
  16. entity.autoban.edit_form:
  17. path: '/admin/config/people/autoban/manage/{autoban}'
  18. defaults:
  19. _title: 'Edit autoban rule'
  20. _entity_form: autoban.edit
  21. requirements:
  22. _entity_access: autoban.update
  23. entity.autoban.delete_form:
  24. path: '/admin/config/people/autoban/manage/{autoban}/delete'
  25. defaults:
  26. _title: 'Delete autoban rule'
  27. _entity_form: autoban.delete
  28. requirements:
  29. _entity_access: autoban.delete
  30. autoban.test:
  31. path: '/admin/config/people/autoban/manage/{rule}/test'
  32. defaults:
  33. _form: '\Drupal\autoban\Form\AutobanTestForm'
  34. _title: 'Retrieve IP addresses for autoban rule'
  35. requirements:
  36. _permission: 'administer autoban'
  37. autoban.ban:
  38. path: '/admin/config/people/autoban/ban/{rule}'
  39. defaults:
  40. _form: '\Drupal\autoban\Form\AutobanBanForm'
  41. _title: 'IP address bans'
  42. rule: ''
  43. requirements:
  44. _permission: 'administer autoban'
  45. autoban.settings:
  46. path: '/admin/config/people/autoban/settings'
  47. defaults:
  48. _form: '\Drupal\autoban\Form\AutobanSettingsForm'
  49. _title: 'Autoban settings'
  50. requirements:
  51. _permission: 'administer autoban'
  52. autoban.direct_ban:
  53. path: '/admin/config/people/autoban/direct_ban/{ips}/{provider}'
  54. defaults:
  55. _controller: '\Drupal\autoban\Controller\AutobanController::banIpAction'
  56. requirements:
  57. _permission: 'administer autoban'
  58. autoban.analyze:
  59. path: '/admin/config/people/autoban/analyze'
  60. defaults:
  61. _form: '\Drupal\autoban\Form\AutobanAnalyzeForm'
  62. _title: 'Analyze'
  63. requirements:
  64. _permission: 'administer autoban'
  65. autoban.delete_all:
  66. path: '/admin/config/people/autoban/delete_all'
  67. defaults:
  68. _form: '\Drupal\autoban\Form\AutobanDeleteAllForm'
  69. _title: 'Delete All'
  70. requirements:
  71. _permission: 'administer autoban'