diff --git a/Source/API/script/index.php b/Source/API/script/index.php index d8fb9dd..7d1e71f 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -40,9 +40,7 @@ try{ } } $temp = array('response' => "Rien", 'test' => "Test Ici"); - foreach ($temp as $key => $value) { - $response->getBody()->write($key."=>".$value);//'"'.$key.'": "'.$value.'"'); - } + $response->getBody()->write(implode($temp));//'"'.$key.'": "'.$value.'"'); //return $response; return $response->withHeader('Content-type', 'application/json'); });