Sha256: e48a9f522e4a9f40374f9b65b93b322e612716ea05fc5448aa5609fd07c16e4d
Contents?: true
Size: 1.54 KB
Versions: 4
Compression:
Stored size: 1.54 KB
Contents
Rails.application.routes.draw do scope '/compliance' do resources :arf_reports, :only => [:index, :show, :destroy], :as => :scaptimony_arf_reports, :controller => :scaptimony_arf_reports do member do match 'parse', :to => 'scaptimony_arf_reports#parse' end collection do get 'auto_complete_search' end end match 'dashboard', :to => 'scaptimony_dashboard#index', :as => "scaptimony_dashboard" resources :policies, :only => [:index, :new, :show, :create, :edit, :update, :destroy], :as => :scaptimony_policies, :controller => :scaptimony_policies do member do match 'parse', :to => 'scaptimony_policies#parse' match 'dashboard', :to => 'scaptimony_policy_dashboard#index', :as => 'scaptimony_policy_dashboard' end collection do get 'auto_complete_search' post 'scap_content_selected' get 'select_multiple_hosts' post 'update_multiple_hosts' end end resources :scap_contents, :as => :scaptimony_scap_contents, :controller => :scaptimony_scap_contents do collection do get 'auto_complete_search' end end end namespace :api do scope "(:apiv)", :module => :v2, :defaults => {:apiv => 'v2'}, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2) do namespace :compliance do post 'arf_reports/:cname/:policy_id/:date', \ :constraints => { :cname => /[^\/]+/ }, :to => 'arf_reports#create' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-0.3.3 | config/routes.rb |
foreman_openscap-0.3.2 | config/routes.rb |
foreman_openscap-0.3.1 | config/routes.rb |
foreman_openscap-0.3.0 | config/routes.rb |