config/routes.rb in csp_report-0.2.0 vs config/routes.rb in csp_report-0.3.0

- old
+ new

@@ -1,7 +1,9 @@ CspReport::Engine.routes.draw do # Careful, the destroy_all action needs to be defined BEFORE the resources # indeed the resources declaration add all the csp_reports/XXX routes to be # the show XXX item action get '/csp_reports/destroy_all' #, controller: 'csp_reports#destroy_all' - resources :csp_reports + + resources :csp_reports, except: [:create] + resources :csp_reports, only: [:create], constraints: { format: /(json|xml)/ } end