feeds/config/routes.rb

24 lines
1.0 KiB
Ruby
Raw Normal View History

2015-07-07 11:51:56 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
get "/feeds/get_channel_list", to: 'feeds#get_channel_list'
2022-09-25 11:34:29 +00:00
post "/feeds/get_feed_list", to: 'feeds#get_feed_list'
2015-07-07 11:51:56 +00:00
get "/feeds/get_category_list", to: 'feeds#get_category_list'
post "/feeds/subscribe", to: 'feeds#subscribe'
post "/feeds/unsubscribe", to: 'feeds#unsubscribe'
post "/feeds/disable", to: 'feeds#disable'
2015-11-09 17:38:30 +00:00
post "/feeds/channel_title", to: 'feeds#channel_title'
resources :feeds,only: ['new','index']
get '/feeds/settings' => 'feeds#settings'
patch '/feeds/update_settings' => 'feeds#update_settings'
get '/feeds/announcements' => 'feeds#announcements'
post '/feeds/process_annc' => 'feeds#process_annc'
get '/feeds/annc_content' => 'feeds#annc_content'
2021-09-15 08:43:19 +00:00
post "/feeds/force_refresh", to: 'feeds#force_refresh'
2015-07-07 11:51:56 +00:00
end
end
2022-05-09 12:10:29 +00:00
post "/xhr/feeds/notify_change" => "feeds#notify_change"
2015-07-07 11:51:56 +00:00
end