File: /mnt/data/ghayatcom/ghayatcom-api/app/Http/Controllers/Api/ChannelController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Config;
class ChannelController extends Controller
{
public function index(Request $request) {
$channelList = Config::get('channel_list');
/** @var array $channelList */
if(count($channelList) > 0) {
$response_json = $channelList;
} else {
$response_json = array();
}
return self::sentResponse(200, $response_json, __('digimed_validation.success_response.data_fetch_success'));
}
}