Sha256: 394afbdcc1d24c547a357b6f9d51309e3c64150ca9dc287f52a85d7af2444227

Contents?: true

Size: 1.19 KB

Versions: 19

Compression:

Stored size: 1.19 KB

Contents

Rails.application.routes.draw do
  namespace :foreman_inventory_upload do
    get ':organization_id/reports/last', to: 'reports#last', constraints: { organization_id: %r{[^\/]+} }
    post ':organization_id/reports', to: 'reports#generate', constraints: { organization_id: %r{[^\/]+} }
    get ':organization_id/uploads/last', to: 'uploads#last', constraints: { organization_id: %r{[^\/]+} }
    get ':organization_id/uploads/file', to: 'uploads#download_file', constraints: { organization_id: %r{[^\/]+} }
    get 'accounts', to: 'accounts#index'
    get 'auto_upload', to: 'uploads#show_auto_upload'
    post 'auto_upload', to: 'uploads#auto_upload'
    post 'host_obfuscation', to: 'uploads#host_obfuscation'
    post 'installed_packages_inclusion', to: 'uploads#installed_packages_inclusion'
    post 'ips_obfuscation', to: 'uploads#ips_obfuscation'

    resources :tasks, only: [:create]
  end

  namespace :insights_cloud do
    resources :tasks, only: [:create]
    resource :settings, only: [:show, :update]
    get 'hits/:host_id', to: 'hits#index'
  end

  namespace :foreman_rh_cloud do
    get 'inventory_upload', to: 'react#inventory_upload'
    get 'insights_cloud', to: 'react#insights_cloud'
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 config/routes.rb
foreman_rh_cloud-1.0.18 config/routes.rb
foreman_rh_cloud-2.0.18 config/routes.rb
foreman_rh_cloud-1.0.17 config/routes.rb
foreman_rh_cloud-2.0.17 config/routes.rb
foreman_rh_cloud-2.0.16 config/routes.rb
foreman_rh_cloud-1.0.16 config/routes.rb
foreman_rh_cloud-1.0.15 config/routes.rb
foreman_rh_cloud-2.0.15 config/routes.rb
foreman_rh_cloud-3.0.14 config/routes.rb
foreman_rh_cloud-2.0.14 config/routes.rb
foreman_rh_cloud-1.0.14 config/routes.rb
foreman_rh_cloud-0.9.14 config/routes.rb
foreman_rh_cloud-0.9.13.1 config/routes.rb
foreman_rh_cloud-1.0.13.1 config/routes.rb
foreman_rh_cloud-2.0.13.1 config/routes.rb
foreman_rh_cloud-0.9.13 config/routes.rb
foreman_rh_cloud-1.0.13 config/routes.rb
foreman_rh_cloud-2.0.13 config/routes.rb