Update deprecated JSON response creation and unnecessary middleware

This commit is contained in:
DaneEveritt 2022-05-04 19:23:01 -04:00
parent f5ad9b9e11
commit 530558b0f8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 9 additions and 91 deletions

View file

@ -74,7 +74,7 @@ class NodeAutoDeployController extends Controller
], ['r_nodes' => 1]);
}
return JsonResponse::create([
return new JsonResponse([
'node' => $node->id,
'token' => $key->identifier . $this->encrypter->decrypt($key->token),
]);