You are here

webhooks.routing.yml in Webhooks 8

File

webhooks.routing.yml
View source
  1. webhooks.webhook_receive:
  2. path: '/webhook/{incoming_webhook_name}'
  3. methods: [POST]
  4. defaults:
  5. _controller: '\Drupal\webhooks\Controller\WebhookController::receive'
  6. _title: 'Webhooks receiver'
  7. requirements:
  8. _custom_access: '\Drupal\webhooks\Controller\WebhookController::access'
  9. webhooks.webhook_toggle_active:
  10. path: '/admin/config/services/webhook/{id}/toggle_active'
  11. defaults:
  12. _controller: '\Drupal\webhooks\Controller\WebhookController::toggleActive'
  13. requirements:
  14. _csrf_token: 'TRUE'
  15. _permission: 'administer webhooks'
  16. webhooks.admin_settings:
  17. path: '/admin/config/services/webhook/settings'
  18. defaults:
  19. _title: 'Settings'
  20. _form: 'Drupal\webhooks\Form\SettingsForm'
  21. requirements:
  22. _permission: 'administer webhooks'