mirror of
https://github.com/koel/koel
synced 2024-12-26 04:23:05 +00:00
19 lines
393 B
PHP
19 lines
393 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API;
|
||
|
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use Throwable;
|
||
|
|
||
|
class DemoCreditController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
try {
|
||
|
return response()->json(json_decode(file_get_contents(resource_path('demo-credits.json')), true));
|
||
|
} catch (Throwable) {
|
||
|
return response()->json([]);
|
||
|
}
|
||
|
}
|
||
|
}
|