2022-12-20

This commit is contained in:
2022-12-20 14:13:05 -03:00
parent 85fef16b27
commit 0f3febc00d
87 changed files with 2525 additions and 419 deletions

View File

@ -6,6 +6,7 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use function Safe\{json_decode, file_get_contents};
use ProVM\Alias\Controller\Json;
use ProVM\Implement\Path;
class Base
{
@ -13,12 +14,8 @@ class Base
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, ContainerInterface $container): ResponseInterface
{
$folder = $container->get('folders')->documentation;
$filename = implode(DIRECTORY_SEPARATOR, [
$folder,
'base.json'
]);
$documentation = json_decode(file_get_contents($filename));
$filename = $container->get('documentation');
$documentation = json_decode(trim(file_get_contents($filename)));
return $this->withJson($response, $documentation);
}
}