diff --git a/config/routes.rb b/config/routes.rb index 89dae2d..666b42f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,6 +7,7 @@ Rails.application.routes.draw do resources :volunteer_services do collection do + get 'toggle_hide' => 'volunteer_services#toggle_hide' get 'analysis' get 'analysis_report' get 'download_excel' @@ -16,7 +17,12 @@ Rails.application.routes.draw do resources :members do collection do scope '(:name-:uid)' do - resources :volunteer_services, :only => [:new] + resources :volunteer_services, :only => [:new] do + collection do + get 'frontend_setting' => 'volunteer_services#frontend_setting' + post 'update_frontend_setting' => 'volunteer_services#update_frontend_setting' + end + end end end end