mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
16 lines
467 B
PHP
16 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);
|
|
}
|
|
}
|