trabajo-afectivo/config/routes/webhook.rb

13 lines
544 B
Ruby
Raw Normal View History

Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# webhooks
match api_path + '/webhooks/preview', to: 'webhooks#preview', via: :get
match api_path + '/webhooks', to: 'webhooks#index', via: :get
match api_path + '/webhooks/:id', to: 'webhooks#show', via: :get
match api_path + '/webhooks', to: 'webhooks#create', via: :post
match api_path + '/webhooks/:id', to: 'webhooks#update', via: :put
match api_path + '/webhooks/:id', to: 'webhooks#destroy', via: :delete
end