$next_question
This commit is contained in:
@@ -14,13 +14,16 @@ class WrenchResources extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$in = json_decode($raw_json, true);
|
||||
|
||||
$out = [
|
||||
$next_question = [
|
||||
"question" => 'This is the question',
|
||||
"option" => ['aaaaa'=>'aaaaaaa', 'bbbbbb'=>'bbbbbbbbb', 'cccccc'=>'cccccccc'],
|
||||
"answer" => 'bbbbbb',
|
||||
"last" => false,
|
||||
"points" => 10
|
||||
];
|
||||
$out = [
|
||||
"next_question" => $next_question
|
||||
];
|
||||
log_message('critical', "***** ***** WrenchResources::generatives Ret ");
|
||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user