mirror of
https://github.com/koel/koel
synced 2024-12-01 08:19:18 +00:00
19 lines
428 B
PHP
19 lines
428 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Support\Facades\File;
|
|
use Throwable;
|
|
|
|
class FetchDemoCreditController extends Controller
|
|
{
|
|
public function __invoke()
|
|
{
|
|
try {
|
|
return response()->json(json_decode(File::get(resource_path('demo-credits.json')), true));
|
|
} catch (Throwable) {
|
|
return response()->json();
|
|
}
|
|
}
|
|
}
|