TEMP : add *2 return in body
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 9cacc7ab12
commit a92bbd6769

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

Loading…
Cancel
Save