Try to return true json 2
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent b2198383ee
commit 5ddc2ae6f4

@ -45,7 +45,7 @@ $app->get('/', function (Request $request, Response $response) {
$ok = true; $ok = true;
$rep = ((new $gateway)->$method($parameters)); $rep = ((new $gateway)->$method($parameters));
#$response->getBody()->write(json_encode($rep, JSON_UNESCAPED_UNICODE)); #$response->getBody()->write(json_encode($rep, JSON_UNESCAPED_UNICODE));
$response->getBody()->write($rep); $response->getBody()->write(var_export($rep,true));
} }
}catch (PDOException $e){ }catch (PDOException $e){
throw new PDOError($request,$e->getMessage(),$e); throw new PDOError($request,$e->getMessage(),$e);

Loading…
Cancel
Save