sso_login_box_for_ntnu/config/routes.rb

7 lines
239 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