From e00e7ea24234034c291f02b78a0cb1232c455205 Mon Sep 17 00:00:00 2001 From: Eric Tsai Date: Tue, 4 Feb 2020 16:38:18 +0800 Subject: [PATCH] init activitiy admin routes --- config/routes.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 1daf9a4..df52c1f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,2 +1,17 @@ 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 + 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 end