channel_sms.rb 1.2 KB

123456789101112131415161718
  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_sms', to: 'channels_sms#index', via: :get
  5. match api_path + '/channels_sms/:id', to: 'channels_sms#show', via: :get
  6. match api_path + '/channels_sms', to: 'channels_sms#create', via: :post
  7. match api_path + '/channels_sms/:id', to: 'channels_sms#update', via: :put
  8. match api_path + '/channels_sms/:id', to: 'channels_sms#destroy', via: :delete
  9. match api_path + '/channels_sms_enable', to: 'channels_sms#enable', via: :post
  10. match api_path + '/channels_sms_disable', to: 'channels_sms#disable', via: :post
  11. match api_path + '/channels_sms', to: 'channels_sms#destroy', via: :delete
  12. match api_path + '/channels_sms/test', to: 'channels_sms#test', via: :post
  13. match api_path + '/sms_webhook/:token', to: 'channels_sms#webhook', via: :get
  14. match api_path + '/sms_webhook/:token', to: 'channels_sms#webhook', via: :post
  15. end