personal-activity/config/routes.rb

18 lines
543 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
resources :activities do
#collection do
# post 'merge_process' => 'books#merge_process'
# get 'merge' => 'books#merge'
# get 'toggle_hide' => 'books#toggle_hide'
# get 'analysis'
# get 'analysis_report'
# get "download_excel"
#end
end
end
end
2020-02-04 03:31:44 +00:00
end