Class: Locomotive::SearchController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/locomotive/search_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
11
# File 'app/controllers/locomotive/search_controller.rb', line 8

def index
  results = self.search_service.from_backoffice(current_site, params[:query])
  respond_with(results: results)
end