PHP info
This commit is contained in:
@ -24,4 +24,11 @@ class Base {
|
|||||||
$key = urlencode(base64_encode($signature));
|
$key = urlencode(base64_encode($signature));
|
||||||
return $this->withJson($response, ['key' => $key]);
|
return $this->withJson($response, ['key' => $key]);
|
||||||
}
|
}
|
||||||
|
public function info(Request $request, Response $response): Response {
|
||||||
|
ob_start();
|
||||||
|
phpinfo();
|
||||||
|
$data = ob_get_clean();
|
||||||
|
$response->getBody()->write($data);
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,4 +3,5 @@ use Contabilidad\Common\Controller\Base;
|
|||||||
|
|
||||||
$app->get('/key/generate[/]', [Base::class, 'generate_key']);
|
$app->get('/key/generate[/]', [Base::class, 'generate_key']);
|
||||||
$app->get('/balance[/]', [Contabilidad\Common\Controller\TiposCategorias::class, 'balance']);
|
$app->get('/balance[/]', [Contabilidad\Common\Controller\TiposCategorias::class, 'balance']);
|
||||||
|
$app->get('/info', [Base::class, 'info']);
|
||||||
$app->get('/', Base::class);
|
$app->get('/', Base::class);
|
||||||
|
Reference in New Issue
Block a user