forked from Katello/katello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.rb
45 lines (35 loc) · 1.73 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Katello::Engine.routes.draw do
scope :katello, :path => '/katello' do
match ':kt_path/auto_complete_search', :action => :auto_complete_search, :controller => :auto_complete_search, :via => :get
resources :sync_management, :only => [:destroy] do
collection do
get :index
get :sync_status
post :sync
end
end
if Katello.with_remote_execution?
match '/remote_execution' => 'remote_execution#create', :via => [:post]
end
end
get '/katello/providers/redhat_provider', to: redirect('/redhat_repositories')
match '/redhat_repositories' => 'react#index', :via => [:get]
match '/subscriptions' => 'react#index', :via => [:get]
match '/subscriptions/*page' => 'react#index', :via => [:get]
match '/module_streams' => 'react#index', :via => [:get]
match '/module_streams/*page' => 'react#index', :via => [:get]
match '/legacy_ansible_collections' => 'react#index', :via => [:get]
match '/legacy_ansible_collections/*page' => 'react#index', :via => [:get]
match '/content_views' => 'react#index', :via => [:get]
match '/content_views/*page' => 'react#index', :via => [:get]
match '/content' => 'react#index', :via => [:get]
Katello::RepositoryTypeManager.generic_ui_content_types.each do |type|
get "/#{type.pluralize}", to: redirect("/content/#{type.pluralize}")
get "/#{type.pluralize}/:page", to: redirect("/content/#{type.pluralize}/%{page}")
match "/content/#{type.pluralize}" => 'react#index', :via => [:get]
match "/content/#{type.pluralize}/*page" => 'react#index', :via => [:get]
end
match '/labs' => 'react#index', :via => [:get]
match '/labs/*page' => 'react#index', :via => [:get]
match '/organization_select' => 'react#index', :via => [:get]
end