Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/prx_auth/rails/routes.rb

Instance Method Summary collapse

Instance Method Details

#prx_auth_routes(path: "auth") ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/prx_auth/rails/routes.rb', line 4

def prx_auth_routes(path: "auth")
  scope module: "prx_auth/rails", path: path do
    resource "sessions", except: %w[edit update] do
      get "access_error", to: "sessions#access_error"
      get "auth_error", to: "sessions#auth_error"
      get "logout", to: "sessions#logout"
      get "refresh", to: "sessions#refresh"
    end
  end
end