Sha256: 79c69d0c832a716996ec318e5d74e9528e789597c32d6076cab83a0eb9ba7f9f
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
OpenStax::Connect::Engine.routes.draw do match '/auth/openstax/callback', to: 'sessions#omniauth_authenticated' #omniauth route get '/auth/openstax', :as => 'openstax_login' get 'sessions/new', :as => 'login' # See https://github.com/plataformatec/devise/commit/f3385e96abf50e80d2ae282e1fb9bdad87a83d3c match 'sessions/destroy', :as => 'logout', :via => OpenStax::Connect.configuration.logout_via if OpenStax::Connect.configuration.enable_stubbing? namespace :dev do resources :users, :only => [] do collection do get 'login' post 'search' post 'become' end end end end end module OpenStax module Connect hh = Engine.routes.url_helpers RouteHelper.register_path(:login, hh.openstax_login_path) { hh.login_dev_users_path } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openstax_connect-0.1.0 | config/routes.rb |