Update DFC routes

This commit is contained in:
Matt-Yorkley
2021-05-07 09:42:35 +01:00
parent 35671e2464
commit c71d4bce6a

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