channel_sms.rb 1.1 KB

12345678910111213141516
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/channels_sms', to: 'channels_sms#index', via: :get
  4. match api_path + '/channels_sms/:id', to: 'channels_sms#show', via: :get
  5. match api_path + '/channels_sms', to: 'channels_sms#create', via: :post
  6. match api_path + '/channels_sms/:id', to: 'channels_sms#update', via: :put
  7. match api_path + '/channels_sms/:id', to: 'channels_sms#destroy', via: :delete
  8. match api_path + '/channels_sms_enable', to: 'channels_sms#enable', via: :post
  9. match api_path + '/channels_sms_disable', to: 'channels_sms#disable', via: :post
  10. match api_path + '/channels_sms', to: 'channels_sms#destroy', via: :delete
  11. match api_path + '/channels_sms/test', to: 'channels_sms#test', via: :post
  12. match api_path + '/sms_webhook/:token', to: 'channels_sms#webhook', via: :get
  13. match api_path + '/sms_webhook/:token', to: 'channels_sms#webhook', via: :post
  14. end