Merge pull request #7574 from Matt-Yorkley/dfc-routes

Update DFC routes
This commit is contained in:
Matt-Yorkley
2021-05-07 11:27:50 +02:00
committed by GitHub

View File

@@ -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 => '/'