TEMP : try with implode(array)
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 6477195c68
commit 08f8bb41f1

@ -40,9 +40,7 @@ try{
} }
} }
$temp = array('response' => "Rien", 'test' => "Test Ici"); $temp = array('response' => "Rien", 'test' => "Test Ici");
foreach ($temp as $key => $value) { $response->getBody()->write(implode($temp));//'"'.$key.'": "'.$value.'"');
$response->getBody()->write($key."=>".$value);//'"'.$key.'": "'.$value.'"');
}
//return $response; //return $response;
return $response->withHeader('Content-type', 'application/json'); return $response->withHeader('Content-type', 'application/json');
}); });

Loading…
Cancel
Save