mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
Feature toggle API reports
This commit is contained in:
@@ -78,7 +78,8 @@ Openfoodnetwork::Application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
get '/reports/:report_type(/:report_subtype)', to: 'reports#show'
|
||||
get '/reports/:report_type(/:report_subtype)', to: 'reports#show',
|
||||
constraints: lambda { |_| Flipper.enabled?(:api_reports) }
|
||||
end
|
||||
|
||||
match '*path', to: redirect(path: "/api/v0/%{path}"), via: :all, constraints: { path: /(?!v[0-9]).+/ }
|
||||
|
||||
Reference in New Issue
Block a user