webhook.rb 544 B

123456789101112
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # webhooks
  4. match api_path + '/webhooks/preview', to: 'webhooks#preview', via: :get
  5. match api_path + '/webhooks', to: 'webhooks#index', via: :get
  6. match api_path + '/webhooks/:id', to: 'webhooks#show', via: :get
  7. match api_path + '/webhooks', to: 'webhooks#create', via: :post
  8. match api_path + '/webhooks/:id', to: 'webhooks#update', via: :put
  9. match api_path + '/webhooks/:id', to: 'webhooks#destroy', via: :delete
  10. end