1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 06:48:45 +09:00

Use scope module: ... for settings/2FA routes (#30919)

This commit is contained in:
Matt Jankowski 2024-07-05 04:57:54 -04:00 committed by GitHub
parent 8de5df225e
commit 8c375d8a5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,15 +37,15 @@ namespace :settings do
end end
end end
resource :otp_authentication, only: [:show, :create], controller: 'two_factor_authentication/otp_authentication' scope module: :two_factor_authentication do
resource :otp_authentication, only: [:show, :create], controller: :otp_authentication
resources :webauthn_credentials, only: [:index, :new, :create, :destroy], resources :webauthn_credentials, only: [:index, :new, :create, :destroy], path: 'security_keys' do
path: 'security_keys',
controller: 'two_factor_authentication/webauthn_credentials' do
collection do collection do
get :options get :options
end end
end end
end
namespace :two_factor_authentication do namespace :two_factor_authentication do
resources :recovery_codes, only: [:create] resources :recovery_codes, only: [:create]