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');