From 5f762c4b0253a618d3da1ef72c21aa5d514ff3df Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Tue, 28 Feb 2023 10:13:28 +0100 Subject: [PATCH] Unset the method parameters in the QueryParams --- .idea/sqldialects.xml | 11 +++++++++++ Source/API/script/index.php | 1 + 2 files changed, 12 insertions(+) create mode 100644 .idea/sqldialects.xml diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml new file mode 100644 index 0000000..b58a74b --- /dev/null +++ b/.idea/sqldialects.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Source/API/script/index.php b/Source/API/script/index.php index ef64870..7b7899c 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -28,6 +28,7 @@ try{ $app->get('/', function (Request $request, Response $response) { $parameters = $request->getQueryParams(); $method = $parameters['method']; + unset($parameters['method']); $response->getBody()->write($method); $listGateway = array("\\Gateway\\GatewayForm", "\\Gateway\\GatewayKeyword", "\\Gateway\\GatewayQuestion"); foreach ($listGateway as $gateway) // Pour chaque Gateway