From c81230d334ca44e81a1ab3a414f538e4e4685ab1 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 9 May 2023 15:22:58 +1000 Subject: [PATCH] Add old DFC API name for prototype compatibility --- config/routes/api.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/routes/api.rb b/config/routes/api.rb index 2589a35d4b..dbca958689 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -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/'