Attempt to fix custom domain routing

This commit is contained in:
Michael Ball 2020-08-19 13:31:04 -07:00
parent 40d2a863d5
commit d306f3732c

View file

@ -2,10 +2,6 @@ Osem::Application.routes.draw do
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
constraints DomainConstraint do
get '/', to: 'conferences#show'
end
if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
devise_for :users, controllers: { registrations: :registrations }
else
@ -232,5 +228,9 @@ Osem::Application.routes.draw do
root to: 'conferences#index', via: [:get, :options]
end
constraints DomainConstraint do
root to: 'conferences#show'
end
get '/.well-known/apple-developer-merchantid-domain-association', to: 'application#apple_pay'
end