mirror of
https://github.com/koel/koel
synced 2024-12-26 12:33:06 +00:00
18 lines
393 B
PHP
18 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([]);
|
|
}
|
|
}
|
|
}
|