Add old DFC API name for prototype compatibility

This commit is contained in:
Maikel Linke
2023-05-09 15:22:58 +10:00
parent 54137067dd
commit c81230d334

View File

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