mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Add old DFC API name for prototype compatibility
This commit is contained in:
@@ -9,6 +9,11 @@ Openfoodnetwork::Application.routes.draw 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
|
||||
|
||||
# The DFC API version depends on the version of the
|
||||
# datafoodconsortium-connector gem.
|
||||
mount DfcProvider::Engine, at: '/dfc-v1.7/'
|
||||
|
||||
Reference in New Issue
Block a user