30 lines
749 B
Ruby
30 lines
749 B
Ruby
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"
|
|
end
|
|
end
|
|
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
|