Refactor settings routes and menu

Use sub controllers/routes for the sections
This commit is contained in:
Râu Cao
2022-12-21 18:10:50 +07:00
parent cf48f76553
commit 445a1c80a6
9 changed files with 44 additions and 15 deletions

View File

@@ -10,10 +10,11 @@ Rails.application.routes.draw do
match 'signup/:step', to: 'signup#steps', as: :signup_steps, via: [:get, :post]
post 'signup_validate', to: 'signup#validate'
get 'settings', to: 'settings#index'
post 'settings_reset_password', to: 'settings#reset_password'
get 'security', to: 'security#index'
namespace :settings do
get 'profile', to: 'profile#index'
get 'security', to: 'security#index'
post 'reset_password', to: 'security#reset_password'
end
namespace :contributions do
root to: 'donations#index'