Skip to content

Commit

Permalink
Merge pull request #1 from thepeerstack/rename-routes
Browse files Browse the repository at this point in the history
rename routes
  • Loading branch information
ichtrojan authored Aug 1, 2021
2 parents d837f69 + 6f32cc4 commit 2c91363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Thepeer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function validateSignature(Request $payload)
public function getReceipt($receipt)
{
try {
$request = $this->client->get("/verify/{$receipt}");
$request = $this->client->get("/send/{$receipt}");

$payload = json_decode($request->getBody()->getContents());

Expand Down Expand Up @@ -97,7 +97,7 @@ public function processReceipt($receipt)
public function indexUser(string $name, string $email, string $identifier)
{
try {
$request = $this->client->post("/users/index", [
$request = $this->client->post("/users", [
"body" => json_encode([
'name' => $name,
'email' => $email,
Expand Down Expand Up @@ -128,7 +128,7 @@ public function indexUser(string $name, string $email, string $identifier)
public function updateUser(string $reference, string $identifier)
{
try {
$request = $this->client->put("/users/update/{$reference}", [
$request = $this->client->put("/users/{$reference}", [
"body" => json_encode([
'identifier' => $identifier
])
Expand Down Expand Up @@ -159,7 +159,7 @@ public function updateUser(string $reference, string $identifier)
public function deleteUser(string $reference)
{
try {
$request = $this->client->delete("/users/delete/{$reference}");
$request = $this->client->delete("/users/{$reference}");

$payload = json_decode($request->getBody()->getContents());

Expand Down

0 comments on commit 2c91363

Please sign in to comment.