. */ namespace Poniverse\Ponyfm\Http\Controllers\Api\Web; use Elasticsearch; use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use Input; use Poniverse\Ponyfm\Library\Search; use Response; class SearchController extends ApiControllerBase { public function getSearch(Search $search) { $input = Input::all(); $results = $search->searchAllContent($input['query']); return Response::json([ 'results' => $results, ], 200); } }