try to follow to HATEOAS.

This commit is contained in:
abdulmohsen
2024-03-05 19:17:52 +03:00
parent e30819a950
commit d7d62b622f
9 changed files with 183 additions and 55 deletions

View File

@@ -27,8 +27,10 @@ final class Env
public function __invoke(ServerRequestInterface $request, array $args = []): ResponseInterface
{
$response = [
'@self' => (string)$request->getUri()->withHost('')->withPort(0)->withScheme(''),
'data' => [],
'links' => [
'self' => (string)$request->getUri()->withHost('')->withPort(0)->withScheme(''),
],
];
foreach ($_ENV as $key => $val) {