Remove unneeded controller option in routes (#30958)

This commit is contained in:
Matt Jankowski 2024-07-09 03:34:19 -04:00 committed by GitHub
parent 7a30c68953
commit f47d761e12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ Rails.application.routes.draw do
namespace :auth do namespace :auth do
resource :setup, only: [:show, :update], controller: :setup resource :setup, only: [:show, :update], controller: :setup
resource :challenge, only: [:create], controller: :challenges resource :challenge, only: [:create]
get 'sessions/security_key_options', to: 'sessions#webauthn_options' get 'sessions/security_key_options', to: 'sessions#webauthn_options'
post 'captcha_confirmation', to: 'confirmations#confirm_captcha', as: :captcha_confirmation post 'captcha_confirmation', to: 'confirmations#confirm_captcha', as: :captcha_confirmation
end end

View file

@ -26,9 +26,9 @@ namespace :settings do
resources :follows, only: :index, controller: :following_accounts resources :follows, only: :index, controller: :following_accounts
resources :blocks, only: :index, controller: :blocked_accounts resources :blocks, only: :index, controller: :blocked_accounts
resources :mutes, only: :index, controller: :muted_accounts resources :mutes, only: :index, controller: :muted_accounts
resources :lists, only: :index, controller: :lists resources :lists, only: :index
resources :domain_blocks, only: :index, controller: :blocked_domains resources :domain_blocks, only: :index, controller: :blocked_domains
resources :bookmarks, only: :index, controller: :bookmarks resources :bookmarks, only: :index
end end
resources :two_factor_authentication_methods, only: [:index] do resources :two_factor_authentication_methods, only: [:index] do