Activate DFC provider engine, remove feature toggle

This commit is contained in:
Maikel Linke
2023-05-16 15:08:00 +10:00
committed by Konrad
parent b013d3f2d4
commit 67c29dd38f
2 changed files with 9 additions and 14 deletions

View File

@@ -6,18 +6,16 @@ Openfoodnetwork::Application.routes.draw do
namespace :api do
constraints FeatureToggleConstraint.new(:dfc_provider) do
# Mount DFC API endpoints
#
# We're using the DFC Connector which produces DFC v1.7 data but the
# DFC prototype is still pointing to the old URL. We keep it for
# testing.
mount DfcProvider::Engine, at: '/dfc-v1.6/', as: :legacy_dfc_provider_engine
# Mount DFC API endpoints
#
# We're using the DFC Connector which produces DFC v1.7 data but the
# DFC prototype is still pointing to the old URL. We keep it for
# testing.
mount DfcProvider::Engine, at: '/dfc-v1.6/', as: :legacy_dfc_provider_engine
# The DFC API version depends on the version of the
# datafoodconsortium-connector gem.
mount DfcProvider::Engine, at: '/dfc-v1.7/'
end
# The DFC API version depends on the version of the
# datafoodconsortium-connector gem.
mount DfcProvider::Engine, at: '/dfc-v1.7/'
namespace :v0 do
resources :products do

View File

@@ -21,9 +21,6 @@ module OpenFoodNetwork
"background_reports" => <<~DESC,
Generate reports in a background process to limit memory consumption.
DESC
"dfc_provider" => <<~DESC,
Enable the DFC compatible endpoint at <code>/api/dfc-*</code>.
DESC
"match_shipping_categories" => <<~DESC,
During checkout, show only shipping methods that support <em>all</em>
shipping categories. Activating this feature for an enterprise owner