Sha256: f85ac191f3b7f96e65174c7e683cff3f3a2ca36989ba96603fa0cb084ded6b8c

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

module ActionDispatch::Routing
  class Mapper
    protected

    def devise_authy(mapping, controllers)
      match "/#{mapping.path_names[:verify_authy]}", :controller => controllers[:devise_authy], :action => :GET_verify_authy, :as => :verify_authy, :via => :get
      match "/#{mapping.path_names[:verify_authy]}", :controller => controllers[:devise_authy], :action => :POST_verify_authy, :as => nil, :via => :post

      match "/#{mapping.path_names[:enable_authy]}", :controller => controllers[:devise_authy], :action => :GET_enable_authy, :as => :enable_authy, :via => :get
      match "/#{mapping.path_names[:enable_authy]}", :controller => controllers[:devise_authy], :action => :POST_enable_authy, :as => nil, :via => :post

      match "/#{mapping.path_names[:verify_authy_installation]}", :controller => controllers[:devise_authy], :action => :GET_verify_authy_installation, :as => :verify_authy_installation, :via => :get
      match "/#{mapping.path_names[:verify_authy_installation]}", :controller => controllers[:devise_authy], :action => :POST_verify_authy_installation, :as => nil, :via => :post


      match "/request-sms", :controller => controllers[:devise_authy], :action => :request_sms, :as => :request_sms, :via => :post
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise-authy-1.5.1 lib/devise-authy/routes.rb
devise-authy-1.5.0 lib/devise-authy/routes.rb
devise-authy-1.4.0 lib/devise-authy/routes.rb
devise-authy-1.3.0 lib/devise-authy/routes.rb
devise-authy-1.2.2 lib/devise-authy/routes.rb