Opcion de enviar update a los servicios externos

This commit is contained in:
Juan Pablo Vial
2025-05-16 19:14:20 -04:00
parent 105179b4ed
commit b7c5e4ebc3
9 changed files with 44 additions and 8 deletions

View File

@ -17,4 +17,11 @@ class External extends Ideal\Controller
}
return $response->withStatus(409);
}
public function update(ServerRequestInterface $request, ResponseInterface $response, Service\External $externalService): ResponseInterface
{
if ($externalService->check(true)) {
return $response->withStatus(204);
}
return $response->withStatus(409);
}
}