mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Activate DFC provider engine, remove feature toggle
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user