Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/devise_fido_usf/routes.rb
Overview
Routes to register U2F devices and to authenticate with a U2F device
Instance Method Summary collapse
- #devise_fido_usf_authentication(mapping, controllers) ⇒ Object
- #devise_fido_usf_registration(mapping, controllers) ⇒ Object
Instance Method Details
#devise_fido_usf_authentication(mapping, controllers) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/devise_fido_usf/routes.rb', line 14 def devise_fido_usf_authentication(mapping, controllers) resource :fido_usf_authentication, only: %i[new create], path: mapping.path_names[:fido_usf_authentication], controller: controllers[:fido_usf_authentications] end |
#devise_fido_usf_registration(mapping, controllers) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/devise_fido_usf/routes.rb', line 7 def devise_fido_usf_registration(mapping, controllers) resource :fido_usf_registration, only: %i[show new create update destroy], path: mapping.path_names[:fido_usf_registration], controller: controllers[:fido_usf_registrations] end |