diff --git a/src/Answers.php b/src/Answers.php index 4277133..be0228c 100644 --- a/src/Answers.php +++ b/src/Answers.php @@ -1,21 +1,28 @@ getAttribute('ParsedBody', []); $questions = WikiApiDto::fromArray($payload); // TODO: check that user is a human or a bot - return new JsonResponse($questions); + //return new JsonResponse($questions); + + // A real system would probably not give this information to the user, but to the server + if((bool) mt_rand(0, 1)) { + return new JsonResponse(['human' => true]); + } else { + return new JsonResponse(['human' => false]); + } } } \ No newline at end of file