From a7ba960c2035d3c38ce7fb53adf0c5d9e55f6bde Mon Sep 17 00:00:00 2001 From: Russ Long Date: Fri, 30 Mar 2018 12:11:14 -0400 Subject: [PATCH] Create Zone --- app/Http/Controllers/PagesController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 44df19f..f91d536 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -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');