You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
322 B
15 lines
322 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require dirname(__DIR__, 2).'/vendor/autoload.php';
|
|
|
|
$request = GuzzleHttp\Psr7\ServerRequest::fromGlobals();
|
|
|
|
$output = [
|
|
'method' => $request->getMethod(),
|
|
'uri' => $request->getUri()->__toString(),
|
|
'body' => $request->getBody()->__toString(),
|
|
];
|
|
|
|
echo json_encode($output);
|
|
|