From c71d4bce6aa737418792cb82e0e7b68aa6afc074 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 7 May 2021 09:42:35 +0100 Subject: [PATCH] Update DFC routes --- config/routes.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 22e0db432a..f51948f6aa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -93,8 +93,10 @@ Openfoodnetwork::Application.routes.draw do get 'sitemap.xml', to: 'sitemap#index', defaults: { format: 'xml' } - # Mount DFC API endpoints - mount DfcProvider::Engine, at: '/' + unless Rails.env.production? + # Mount DFC API endpoints + mount DfcProvider::Engine, at: '/' + end # Mount Spree's routes mount Spree::Core::Engine, :at => '/'