regenerate_secret:
  path: '/{code}/webhook/regenerate-secret'
  defaults: { _controller: akeneo_connectivity.connection.internal_api.controller.webhook:regenerateSecret }
  methods: [GET]
  requirements:
    code: '[a-zA-Z0-9_]+'

get:
  path: '/{code}/webhook'
  defaults: { _controller: akeneo_connectivity.connection.internal_api.controller.webhook:get }
  methods: [GET]
  requirements:
    code: '[a-zA-Z0-9_]+'
    
check_reachability:
  path: '/{code}/webhook/check-reachability'
  defaults: { _controller: akeneo_connectivity.connection.internal_api.controller.webhook:checkWebhookReachability }

update:
  path: '/{code}/webhook'
  defaults: { _controller: akeneo_connectivity.connection.internal_api.controller.webhook:update }
  methods: [POST]
  requirements:
    code: '[a-zA-Z0-9_]+'
