sso_login_box_for_ntnu/config/routes.rb

7 lines
238 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 'ntnu_oauth2', to: 'sso_login_box#ntnu_oauth2_sign_in'
end
end