sso_login_box_for_ntu/config/routes.rb

9 lines
353 B
Ruby

Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
post 'ntu_sso/response', to: 'sso_login_box#sso_sign_in'
get 'ntu_sso', to: 'sso_login_box#sso_auth_page'
get 'ntu_sso/logout', to: 'sso_login_box#sp_logout_request'
end
end