readCdf($id); if (!$list) { $body = [ 'type' => 'error', 'key' => 'readCdf', 'method' => 'get', 'data' => '', ]; $respond->statusNotFound(); } else { $body = [ 'type' => 'success', 'key' => 'readCdf', 'method' =>'get', 'data' => $list, ]; $respond->statusOk(); } return $respond->createBody($body)->respond(); } }