Update deprecated JSON response creation and unnecessary middleware
This commit is contained in:
parent
f5ad9b9e11
commit
530558b0f8
11 changed files with 9 additions and 91 deletions
|
@ -35,7 +35,7 @@ class SystemInformationController extends Controller
|
|||
{
|
||||
$data = $this->repository->setNode($node)->getSystemInformation();
|
||||
|
||||
return JsonResponse::create([
|
||||
return new JsonResponse([
|
||||
'version' => $data['version'] ?? '',
|
||||
'system' => [
|
||||
'type' => Str::title($data['os'] ?? 'Unknown'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue