2014-05-05 08:20:37 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
|
|
|
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
2014-05-05 11:33:35 +00:00
|
|
|
namespace :admin do
|
2015-05-05 08:59:29 +00:00
|
|
|
get "/web_resources/order" => "web_resources#order"
|
|
|
|
post "/web_resources/updateorder" => "web_resources#updateorder"
|
2014-05-05 11:33:35 +00:00
|
|
|
resources :web_resources
|
|
|
|
end
|
2014-05-05 08:20:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|