fixed http methods in client

This commit is contained in:
Tony Roy 2021-03-12 16:11:06 -04:00
commit c3902286a6

View file

@ -44,7 +44,7 @@ class HttpClient implements HttpClientInterface
{
$response = $this->getClient()->request(
'GET',
config('netbox.panels.default.key').$path,
$path,
[
'query' => $query
]
@ -61,7 +61,7 @@ class HttpClient implements HttpClientInterface
{
$response = $this->getClient()->request(
'POST',
config('netbox.panels.default.key').$path,
$path,
[
'form_params' => $body
]
@ -78,7 +78,7 @@ class HttpClient implements HttpClientInterface
{
$response = $this->getClient()->request(
'PUT',
config('netbox.panels.default.key').$path,
$path,
[
'form_params' => $body
]
@ -95,7 +95,7 @@ class HttpClient implements HttpClientInterface
{
$response = $this->getClient()->request(
'DELETE',
config('netbox.panels.default.key').$path,
$path,
[
'form_params' => $body
]