Create Zone
This commit is contained in:
parent
0a3687b221
commit
a7ba960c20
@ -29,7 +29,6 @@ class PagesController extends Controller
|
||||
$client = new Client(); //GuzzleHttp\Client
|
||||
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
|
||||
'form_params' => [
|
||||
'headers' => $headers,
|
||||
'kind' => 'Native',
|
||||
'name' => $zone_name,
|
||||
'nameservers' => 'pdnstest.tfmm.co',
|
||||
@ -49,6 +48,9 @@ class PagesController extends Controller
|
||||
]
|
||||
]
|
||||
]
|
||||
'headers' => [
|
||||
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'
|
||||
];
|
||||
]);
|
||||
|
||||
return redirect('createzone');
|
||||
|
Loading…
Reference in New Issue
Block a user