trabajo-afectivo/config/routes/channel_twitter.rb
2022-01-01 14:38:12 +01:00

14 lines
874 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
match api_path + '/channels_twitter', to: 'channels_twitter#index', via: :get
match api_path + '/channels_twitter/:id', to: 'channels_twitter#update', via: :post
match api_path + '/channels_twitter_disable', to: 'channels_twitter#disable', via: :post
match api_path + '/channels_twitter_enable', to: 'channels_twitter#enable', via: :post
match api_path + '/channels_twitter', to: 'channels_twitter#destroy', via: :delete
match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_verify', via: :get
match api_path + '/channels_twitter_webhook', to: 'channels_twitter#webhook_incoming', via: :post
end