sso_login_box_for_ccu/config/routes.rb

8 lines
309 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
get 'oauth2_service', to: 'sso_login_box#oauth2_sign_in'
get 'oauth2_service/auth_page', to: 'sso_login_box#oauth2_auth_page'
end
end