From 2cc9f35664ea2e73722d380df2811723402ffa05 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Wed, 12 Aug 2026 15:59:22 +0800 Subject: [PATCH] add front setting --- config/routes.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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