Opcion de enviar update a los servicios externos
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user