personal-activity/config/routes.rb

21 lines
690 B
Ruby
Raw Normal View History

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'
#post 'books/import_from_excel' => 'books#import_from_excel'
2020-02-04 08:38:18 +00:00
resources :activities do
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'
get 'analysis'
get 'analysis_report'
2020-02-04 08:38:18 +00:00
# get "download_excel"
end
2020-02-04 08:38:18 +00:00
end
end
end
2020-02-04 03:31:44 +00:00
end