Class: Upframework::SearchesController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/upframework/searches_controller.rb

Instance Method Summary collapse

Methods inherited from ApiController

#authenticate!

Methods included from CrudEndpoint

#create, #destroy, #show, #update

Instance Method Details

#indexObject



9
10
11
12
13
14
15
# File 'app/controllers/upframework/searches_controller.rb', line 9

def index
  args = { current_ability: current_ability, current_user: current_user }
  args.merge!(permitted_params)

  resource_scope = search_class.run(args).result
  render_serialized resource_scope
end