koel/app/Http/Controllers/API/MediaInformation/ArtistController.php

14 lines
298 B
PHP
Raw Normal View History

<?php
2018-08-18 13:19:40 +00:00
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Artist;
2018-08-18 13:19:40 +00:00
class ArtistController extends Controller
{
2017-08-06 09:43:59 +00:00
public function show(Artist $artist)
{
return response()->json($this->mediaInformationService->getArtistInformation($artist)?->toArray() ?: []);
}
}