. */ 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) { $results = $search->searchAllContent(Input::query('query')); return Response::json([ 'results' => $results, ], 200); } }