personal-project/config/routes.rb

35 lines
1.2 KiB
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"
2015-12-15 08:10:46 +00:00
get 'projects/download_excel_format' => 'projects#excel_format'
post 'projects/import_from_excel' => 'projects#import_from_excel'
2014-07-04 06:14:37 +00:00
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
2016-03-18 18:06:06 +00:00
get "/xhr/personal_project/get_fields_for_index" => "personal_projects#get_fields_for_index"
post "/xhr/personal_project/save_index_fields" => "personal_projects#save_index_fields"
2014-06-04 07:43:24 +00:00
end
end