Extract security_key_options endpoint to standalone controller (#38367)

This commit is contained in:
Matt Jankowski
2026-03-25 06:35:09 -04:00
committed by GitHub
parent bafc552a72
commit 5d7682c7dd
4 changed files with 66 additions and 33 deletions

View File

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