2014-04-01 07:12:43 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
2014-07-16 08:32:50 +00:00
|
|
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
|
|
|
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
|
|
|
namespace :admin do
|
|
|
|
get 'er_email/send_email/:id', to: 'er_emails#send_email'
|
|
|
|
get 'er_email/test_send_email/:id', to: 'er_emails#test_send_email'
|
|
|
|
post 'er_email/preview', to: 'er_emails#preview'
|
|
|
|
get 'er_email/destroy_preview/:id', to: 'er_emails#destroy_preview'
|
|
|
|
resources :er_emails
|
2014-04-01 07:12:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|