personal-technology-transfer/config/routes.rb

29 lines
1.0 KiB
Ruby
Raw Normal View History

2016-03-10 10:49:08 +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
namespace :admin do
get 'technology_transfers_setting' => "technology_transfers#setting"
resources :technology_transfers do
collection do
get 'toggle_hide' => 'technology_transfers#toggle_hide'
end
end
resources :members do
collection do
scope '(:name-:uid)' do
resources :technology_transfers do
collection do
get 'frontend_setting' => 'technology_transfers#frontend_setting'
post 'update_frontend_setting' => 'technology_transfers#update_frontend_setting'
end
end
end
end
end
resources :technology_transfer_categories
post "technology_transfer_categories/update_order" => "technology_transfer_categories#update_order"
end
end
end