diff --git a/config/routes/api.rb b/config/routes/api.rb index 7a314b7c0c..c919378aa2 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -79,6 +79,6 @@ Openfoodnetwork::Application.routes.draw do end end - match '*path', to: redirect(path: "/api/v0/%{path}"), via: :all, constraints: { path: /(?!.*v0).+/ } + match '*path', to: redirect(path: "/api/v0/%{path}"), via: :all, constraints: { path: /(?!v0).+/ } end end