Updated servers API for IP addresses

Updated servers API for IP addresses
This commit is contained in:
cp6 2022-02-22 13:41:55 +11:00
parent d5620294e2
commit 9eafe5fa55

View File

@ -55,6 +55,11 @@ class ApiController extends Controller
->where('la.service_id', '=', $id) ->where('la.service_id', '=', $id)
->get(['l.*']); ->get(['l.*']);
$ip_addresses = DB::table('ips as i')
->where('i.service_id', '=', $id)
->get(['i.*']);
$server['ip_addresses'] = $ip_addresses;
$server['yabs'] = $yabs; $server['yabs'] = $yabs;
$server['disk_speed'] = $disk_speed; $server['disk_speed'] = $disk_speed;
$server['network_speed'] = $network_speed; $server['network_speed'] = $network_speed;