Sha256: ba0d1fe07c8db08d19a3e4748bdc41107ed00e5d3f1128fd998cc0d7fb9c657d
Contents?: true
Size: 846 Bytes
Versions: 5
Compression:
Stored size: 846 Bytes
Contents
OpenStax::Accounts::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::Accounts.configuration.logout_via if OpenStax::Accounts.configuration.enable_stubbing? namespace :dev do resources :users, :only => [] do collection do get 'login' post 'search' post 'become' end end end end end hh = OpenStax::Accounts::Engine.routes.url_helpers OpenStax::Accounts::RouteHelper.register_path(:login, hh.openstax_login_path) { hh.login_dev_users_path }
Version data entries
5 entries across 5 versions & 1 rubygems