channel_twitter.rb 797 B

123456789101112
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/channels_twitter', to: 'channels_twitter#index', via: :get
  4. match api_path + '/channels_twitter/:id', to: 'channels_twitter#update', via: :post
  5. match api_path + '/channels_twitter_disable', to: 'channels_twitter#disable', via: :post
  6. match api_path + '/channels_twitter_enable', to: 'channels_twitter#enable', via: :post
  7. match api_path + '/channels_twitter', to: 'channels_twitter#destroy', via: :delete
  8. match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_verify', via: :get
  9. match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_incoming', via: :post
  10. end