Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/leash/provider/routing.rb
Instance Method Summary collapse
Instance Method Details
#leash_provider ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/leash/provider/routing.rb', line 3 def leash_provider scope :oauth2 do get "authorize/:user_role", to: "leash/provider/authorize#authorize", as: "leash_provider_authorize" post "token", to: "leash/provider/token#token", as: "leash_provider_token" get "user_info", to: "leash/provider/user_info#info", as: "leash_provider_user_info" end end |