channel_twitter.rb 874 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. match api_path + '/channels_twitter', to: 'channels_twitter#index', via: :get
  5. match api_path + '/channels_twitter/:id', to: 'channels_twitter#update', via: :post
  6. match api_path + '/channels_twitter_disable', to: 'channels_twitter#disable', via: :post
  7. match api_path + '/channels_twitter_enable', to: 'channels_twitter#enable', via: :post
  8. match api_path + '/channels_twitter', to: 'channels_twitter#destroy', via: :delete
  9. match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_verify', via: :get
  10. match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_incoming', via: :post
  11. end