From e014a991d8f190028b0f7659816a31bc7b67d3db Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Fri, 1 Dec 2023 11:20:06 +0000 Subject: [PATCH] Send /checkout routes to CheckoutController instead of SplitCheckoutController --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index c92481cb64..ba182c9607 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -84,11 +84,11 @@ Openfoodnetwork::Application.routes.draw do get "/stripe/authorize/:order_number", to: "stripe#authorize", as: :authorize_stripe end - get '/checkout', to: 'split_checkout#edit' + get '/checkout', to: 'checkout#edit' constraints step: /(details|payment|summary)/ do - get '/checkout/:step', to: 'split_checkout#edit', as: :checkout_step - put '/checkout/:step', to: 'split_checkout#update', as: :checkout_update + get '/checkout/:step', to: 'checkout#edit', as: :checkout_step + put '/checkout/:step', to: 'checkout#update', as: :checkout_update end # Redirects to the new checkout for any other 'step' (ie. /checkout/cart from the legacy checkout)