channel_telegram.rb 853 B

123456789101112
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/channels_telegram', to: 'channels_telegram#index', via: :get
  4. match api_path + '/channels_telegram', to: 'channels_telegram#add', via: :post
  5. match api_path + '/channels_telegram/:id', to: 'channels_telegram#update', via: :put
  6. match api_path + '/channels_telegram_webhook/:callback_token', to: 'channels_telegram#webhook', via: :post
  7. match api_path + '/channels_telegram_disable', to: 'channels_telegram#disable', via: :post
  8. match api_path + '/channels_telegram_enable', to: 'channels_telegram#enable', via: :post
  9. match api_path + '/channels_telegram', to: 'channels_telegram#destroy', via: :delete
  10. end