mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
18 lines
369 B
PHP
18 lines
369 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API\Podcast;
|
||
|
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use App\Http\Resources\SongResource;
|
||
|
use App\Models\Song as Episode;
|
||
|
|
||
|
class FetchEpisodeController extends Controller
|
||
|
{
|
||
|
public function __invoke(Episode $episode)
|
||
|
{
|
||
|
$this->authorize('view', $episode->podcast);
|
||
|
|
||
|
return SongResource::make($episode);
|
||
|
}
|
||
|
}
|