Skip to content

Commit

Permalink
TestEndpoint: Use heleprs
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 5, 2020
1 parent f4ccd41 commit 7e7ab64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Endpoint/TestEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function actionDefault(string $hello = 'world'): void
$this->sendJson([
'name' => 'Test API endpoint',
'hello' => $hello,
'endpoint' => $this->getName(),
]);
}

Expand All @@ -26,10 +27,7 @@ public function actionDefault(string $hello = 'world'): void
*/
public function postCreateUser(array $data): void
{
$this->sendJson([
'state' => 'ok',
'data' => $data,
]);
$this->sendOk($data);
}

}

0 comments on commit 7e7ab64

Please sign in to comment.