Skip to content

Commit 52d1907

Browse files
committed
Fix HTTP methods in post and put functions
1 parent 1f0d393 commit 52d1907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/ApiGatewayClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ public function get(string $uri, array $query = [])
4646
public function post(string $uri, array $data = [])
4747
{
4848
return $this->handleResponse(
49-
$this->http->delete($uri)
49+
$this->http->post($uri, $data)
5050
);
5151
}
5252

5353
public function put(string $uri, array $data = [])
5454
{
5555
return $this->handleResponse(
56-
$this->http->delete($uri)
56+
$this->http->put($uri, $data)
5757
);
5858
}
5959

0 commit comments

Comments
 (0)