From d306f3732c4df91e5584bc1489cc82d7b05d3def Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 19 Aug 2020 13:31:04 -0700 Subject: [PATCH] Attempt to fix custom domain routing --- config/routes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 79b03928..ef984ca9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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