Module: Rhoconnect::Handler::Search
- Defined in:
- lib/rhoconnect/handler/search.rb,
lib/rhoconnect/handler/search/engine.rb,
lib/rhoconnect/handler/search/runner.rb,
lib/rhoconnect/handler/search/execute_methods.rb,
lib/rhoconnect/handler/search/pass_through_runner.rb
Defined Under Namespace
Modules: ExecuteMethods Classes: Engine, PassThroughRunner, Runner
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rhoconnect/handler/search.rb', line 10 def self.registered(app) # search request app.post "/search", \ { :login_required => true, :client_required => true, :source_required => false, :admin_required => false, :rc_handler => :search, :deprecated_route => {:verb => :get, :url => ['/application/search', '/api/application/search']} } do search_params = params[:search] @model.search(search_params) end end |