epaper/config/routes.rb

39 lines
1.4 KiB
Ruby
Raw Normal View History

2019-05-28 15:54:32 +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
resources :e_paper_criterias do
member do
get "send_test_email"
get "send_newsletter"
2020-08-28 12:49:47 +00:00
get "get_failed_emails"
get "get_invalid_emails"
2019-05-28 15:54:32 +00:00
end
end
get 'e_paper_subscribers/export_excel', to: 'e_paper_subscribers#export_excel'
get 'e_paper_subscribers/download_excel_format', to: 'e_paper_subscribers#download_excel_format'
post 'e_paper_subscribers/import_from_excel', to: 'e_paper_subscribers#import_from_excel'
get 'e_paper_subscribers/get_subscribers_modal', to: 'e_paper_subscribers#get_subscribers_modal'
get 'e_paper_subscribers/batch_delete_subscribers', to: 'e_paper_subscribers#batch_delete_subscribers'
post 'e_paper_subscribers/delete_subscribers', to: 'e_paper_subscribers#delete_subscribers'
2019-05-28 15:54:32 +00:00
resources :e_paper_subscribers
resources :e_papers do
member do
get :send_email_to_subscribers
delete "delete_subscriber"
get "send_test_email"
end
collection do
get "instructions"
get "subscribers"
end
end
end
get "/xhr/epaper/subscribeuser", to: "e_papers#subscribeuser"
get "/xhr/epaper/unsubscribeuser", to: "e_papers#unsubscribeuser"
end
end