1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Use module: :users in routes/admin section

This commit is contained in:
Matt Jankowski 2024-06-18 11:08:44 -04:00
parent 2ed13071ef
commit 516ffe8397

View file

@ -144,8 +144,10 @@ namespace :admin do
end
resources :users, only: [] do
resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
resource :role, only: [:show, :update], controller: 'users/roles'
scope module: :users do
resource :two_factor_authentication, only: [:destroy]
resource :role, only: [:show, :update]
end
end
resources :custom_emojis, only: [:index, :new, :create] do