Change existsForm
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent c90fca2cc3
commit bc52d4cb78

@ -78,10 +78,6 @@ $app->delete('/deleteForm', function(Request $request, Response $response){
}); });
$app->get('/existsForm', function(Request $request, Response $response){ $app->get('/existsForm', function(Request $request, Response $response){
$parameters = $request->getQueryParams();
if (empty($parameters['id']) || empty($parameters['response'])){
throw new TypeErrorParameters($request);
}
try{ try{
$response->getBody()->write(json_encode((new GatewayForm)->existsForm(), JSON_UNESCAPED_UNICODE)); $response->getBody()->write(json_encode((new GatewayForm)->existsForm(), JSON_UNESCAPED_UNICODE));
}catch (PDOException $e){ }catch (PDOException $e){

Loading…
Cancel
Save