2020-02-04 03:31:44 +00:00
|
|
|
Rails.application.routes.draw do
|
2020-02-04 08:38:18 +00:00
|
|
|
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
|
2020-02-06 09:53:44 +00:00
|
|
|
get 'activities/download_excel_format' => 'activities#download_excel_format'
|
2020-02-06 10:10:34 +00:00
|
|
|
#post 'activities/import_from_excel' => 'activities#import_from_excel'
|
2020-02-06 09:53:44 +00:00
|
|
|
|
2020-02-04 08:38:18 +00:00
|
|
|
resources :activities do
|
2020-02-06 08:43:15 +00:00
|
|
|
collection do
|
2020-02-04 08:38:18 +00:00
|
|
|
# post 'merge_process' => 'books#merge_process'
|
|
|
|
# get 'merge' => 'books#merge'
|
|
|
|
# get 'toggle_hide' => 'books#toggle_hide'
|
2020-02-06 08:43:15 +00:00
|
|
|
get 'analysis'
|
|
|
|
get 'analysis_report'
|
2020-02-06 10:10:34 +00:00
|
|
|
get 'download_excel'
|
2020-02-06 08:43:15 +00:00
|
|
|
end
|
2020-02-04 08:38:18 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-02-04 03:31:44 +00:00
|
|
|
end
|