Sha256: 6dddd3c060b034e6238cbb9dbd7cbef7af23fb35ba807b5de01cf7abab6124fc
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
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, except: [:create] resources :csp_reports, only: [:create], constraints: { format: /(json|xml)/ } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csp_report-0.3.0 | config/routes.rb |