personal-project/config/routes.rb

31 lines
880 B
Ruby
Raw Normal View History

2014-06-04 07:43:24 +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
2014-07-04 06:14:37 +00:00
get 'project_setting' => "projects#setting"
resources :projects do
collection do
get 'toggle_hide' => 'projects#toggle_hide'
end
end
resources :members do
collection do
scope '(:name-:uid)' do
resources :projects do
collection do
get 'frontend_setting' => 'projects#frontend_setting'
post 'update_frontend_setting' => 'projects#update_frontend_setting'
end
end
end
end
end
resources :project_types
2015-12-02 10:29:49 +00:00
post "project_types/update_order" => "project_types#update_order"
2014-06-04 07:43:24 +00:00
end
end
end