Skip to content

Commit

Permalink
Routes for auto_complete_search
Browse files Browse the repository at this point in the history
Relates to #19.
  • Loading branch information
isimluk committed Dec 18, 2014
1 parent b4bde27 commit 36b844e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/routes.rb
Expand Up @@ -6,6 +6,9 @@
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],
Expand All @@ -15,13 +18,18 @@
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
:as => :scaptimony_scap_contents, :controller => :scaptimony_scap_contents do
collection do
get 'auto_complete_search'
end
end
end

namespace :api do
Expand Down

0 comments on commit 36b844e

Please sign in to comment.