mirror of
https://github.com/koel/koel
synced 2025-01-01 23:38:43 +00:00
17 lines
467 B
PHP
17 lines
467 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\V6\API;
|
||
|
|
||
|
use App\Http\Controllers\API\Controller;
|
||
|
use App\Http\Controllers\V6\Requests\YouTubeSearchRequest;
|
||
|
use App\Models\Song;
|
||
|
use App\Services\YouTubeService;
|
||
|
|
||
|
class YouTubeSearchController extends Controller
|
||
|
{
|
||
|
public function __invoke(YouTubeSearchRequest $request, Song $song, YouTubeService $youTubeService)
|
||
|
{
|
||
|
return $youTubeService->searchVideosRelatedToSong($song, (string) $request->pageToken);
|
||
|
}
|
||
|
}
|