personal-project/config/routes.rb

38 lines
1.3 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'
2016-06-02 11:38:50 +00:00
get 'analysis'
get 'analysis_report'
get "download_excel"
2014-07-04 06:14:37 +00:00
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