Sha256: 4d9fb69a8fac3ce46f92d2d23ad5f9394d049f80b60f1b2b98e1c7e4e58b78bd
Contents?: true
Size: 1.63 KB
Versions: 14
Compression:
Stored size: 1.63 KB
Contents
RedhatAccess::Engine.routes.draw do #API routes get 'configuration' => 'configuration#index' get 'logs' => 'api/logs#logs' get 'attachments' => 'api/attachments#index' post 'attachments' => 'api/attachments#create' unless Foreman::Plugin.installed?('foreman_sam') scope '/' do resource :telemetry_configuration, only: [:show, :update] end get "/insights/templates/:page" => "analytics_dashboard#template" # hack to get around angular-rails-templates bug scope '/r/insights' do get '/', to: 'api/machine_telemetry_api#api_connection_test' get '/v1/branch_info', to: 'api/machine_telemetry_api#get_branch_info' post '/uploads/(:id)', to: 'api/machine_telemetry_api#proxy_upload' get '/view/api/:v/me' , to: 'api/telemetry_api#connection_status', :constraints => {:v =>/(v[0-9]|latest)/} match '/view/api/:path', to: 'api/telemetry_api#proxy', :constraints => {:path => /.*/} ,via: [:get, :post, :delete,:put] match '/:path', to: 'api/machine_telemetry_api#proxy', :constraints => {:path => /.*/}, via: [:get, :post, :delete,:put] end get 'insights', to: 'analytics_dashboard#index' get 'analytics_configuration', to: 'telemetry_configuration#index' match '/insights/*path', to: 'analytics_dashboard#index', via: [:get] end scope '/strata' do match '/:path', to: 'api/strata_proxy#call', :constraints => {:path => /.*/}, via: [:get, :post, :delete,:put] end #Angular UI routes match '/:path', to: 'redhat_access#index', :constraints => {:path => /.*/}, :via => [:get] root :to => 'redhat_access#index' end
Version data entries
14 entries across 14 versions & 1 rubygems