ask/config/routes.rb

23 lines
490 B
Ruby
Raw Normal View History

2014-10-02 06:00:35 +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 #backend
resources :asks do
collection do
get 'export'
get 'setting'
post 'setting_save'
post 'get_new_setting_index'
2014-10-02 06:00:35 +00:00
post 'export', to: 'asks#do_export'
end
end
resources :ask_acknowledgements
resources :ask_admins
end
resources :asks #fronted
end
end