mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +00:00
16 lines
437 B
PHP
16 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Requests\API\SearchRequest;
|
|
use App\Http\Resources\ExcerptSearchResource;
|
|
use App\Services\SearchService;
|
|
|
|
class ExcerptSearchController extends Controller
|
|
{
|
|
public function __invoke(SearchRequest $request, SearchService $searchService)
|
|
{
|
|
return ExcerptSearchResource::make($searchService->excerptSearch($request->q));
|
|
}
|
|
}
|