fixed http methods in client
This commit is contained in:
parent
a42effc0e1
commit
c3902286a6
1 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ class HttpClient implements HttpClientInterface
|
||||||
{
|
{
|
||||||
$response = $this->getClient()->request(
|
$response = $this->getClient()->request(
|
||||||
'GET',
|
'GET',
|
||||||
config('netbox.panels.default.key').$path,
|
$path,
|
||||||
[
|
[
|
||||||
'query' => $query
|
'query' => $query
|
||||||
]
|
]
|
||||||
|
|
@ -61,7 +61,7 @@ class HttpClient implements HttpClientInterface
|
||||||
{
|
{
|
||||||
$response = $this->getClient()->request(
|
$response = $this->getClient()->request(
|
||||||
'POST',
|
'POST',
|
||||||
config('netbox.panels.default.key').$path,
|
$path,
|
||||||
[
|
[
|
||||||
'form_params' => $body
|
'form_params' => $body
|
||||||
]
|
]
|
||||||
|
|
@ -78,7 +78,7 @@ class HttpClient implements HttpClientInterface
|
||||||
{
|
{
|
||||||
$response = $this->getClient()->request(
|
$response = $this->getClient()->request(
|
||||||
'PUT',
|
'PUT',
|
||||||
config('netbox.panels.default.key').$path,
|
$path,
|
||||||
[
|
[
|
||||||
'form_params' => $body
|
'form_params' => $body
|
||||||
]
|
]
|
||||||
|
|
@ -95,7 +95,7 @@ class HttpClient implements HttpClientInterface
|
||||||
{
|
{
|
||||||
$response = $this->getClient()->request(
|
$response = $this->getClient()->request(
|
||||||
'DELETE',
|
'DELETE',
|
||||||
config('netbox.panels.default.key').$path,
|
$path,
|
||||||
[
|
[
|
||||||
'form_params' => $body
|
'form_params' => $body
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue