Create Zone

This commit is contained in:
Russ Long 2018-03-30 12:11:14 -04:00
parent 0a3687b221
commit a7ba960c20

View File

@ -29,7 +29,6 @@ class PagesController extends Controller
$client = new Client(); //GuzzleHttp\Client $client = new Client(); //GuzzleHttp\Client
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [ $result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
'form_params' => [ 'form_params' => [
'headers' => $headers,
'kind' => 'Native', 'kind' => 'Native',
'name' => $zone_name, 'name' => $zone_name,
'nameservers' => 'pdnstest.tfmm.co', 'nameservers' => 'pdnstest.tfmm.co',
@ -49,6 +48,9 @@ class PagesController extends Controller
] ]
] ]
] ]
'headers' => [
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'
];
]); ]);
return redirect('createzone'); return redirect('createzone');