webhooks-8.x-1.x-dev/webhooks.routing.yml
webhooks.routing.yml
webhooks.webhook_receive:
path: '/webhook/{incoming_webhook_name}'
methods: [POST]
defaults:
_controller: '\Drupal\webhooks\Controller\WebhookController::receive'
_title: 'Webhooks receiver'
requirements:
_custom_access: '\Drupal\webhooks\Controller\WebhookController::access'
webhooks.webhook_toggle_active:
path: '/admin/config/services/webhook/{id}/toggle_active'
defaults:
_controller: '\Drupal\webhooks\Controller\WebhookController::toggleActive'
requirements:
_csrf_token: 'TRUE'
_permission: 'administer webhooks'
webhooks.admin_settings:
path: '/admin/config/services/webhook/settings'
defaults:
_title: 'Settings'
_form: 'Drupal\webhooks\Form\SettingsForm'
requirements:
_permission: 'administer webhooks'
