Explorar el Código

JSON test now conforms to the correct output

Patrick Falls hace 12 años
padre
commit
e614082a89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      php-phalcon-micro/public/index.php

+ 1 - 1
php-phalcon-micro/public/index.php

@@ -42,7 +42,7 @@ try {
 
     $app->map('/json', function() {
         header("Content-Type: application/json");
-        echo json_encode('Hello World!');
+        echo json_encode(array('message' => 'Hello World!'));
     });
 
     //