koel/app/Http/Controllers/API/DemoCreditController.php

19 lines
393 B
PHP
Raw Normal View History

2022-08-04 08:34:13 +00:00
<?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([]);
}
}
}