Sha256: df50a4344616686d0dd9410d71fd0bf6df5d46f8c6f728047e3bef3050c9c8f1

Contents?: true

Size: 948 Bytes

Versions: 6

Compression:

Stored size: 948 Bytes

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'
  end

  namespace :insights_cloud do
    resources :tasks, only: [:create]
  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

6 entries across 6 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.9 config/routes.rb
foreman_rh_cloud-1.0.9 config/routes.rb
foreman_rh_cloud-0.9.9 config/routes.rb
foreman_rh_cloud-0.9.8 config/routes.rb
foreman_rh_cloud-1.0.8 config/routes.rb
foreman_rh_cloud-2.0.8 config/routes.rb