Test ogdClient
testing/ogcore-api/pipeline/head This commit looks good Details

pull/12/head
Manuel Aranda Rosales 2024-10-23 10:54:21 +02:00
parent 8c30def21a
commit 6601a755a7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class StatusAction extends AbstractController
'headers' => [
'Content-Type' => 'application/json', // Cabecera de tipo de contenido
],
'json' => ['hola' => 'mundo'], // Cuerpo de la solicitud como JSON
'json' => [], // Cuerpo de la solicitud como JSON
]);
$statusCode = $response->getStatusCode();
$client->setStatus($statusCode === Response::HTTP_OK ? 'active' : 'off');