From acbddd4d4e841a0816d224ceaaa2f5e20a7bc173 Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Mon, 9 Jan 2023 19:49:36 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'api-rest/index.php?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-rest/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api-rest/index.php b/api-rest/index.php index 968eb55..86a8045 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -13,8 +13,6 @@ include (__DIR__ .'/gateways/gameGateway.php'); include (__DIR__ .'/gateways/skinGateway.php'); - use PDO; - // Connection to database // ------ @@ -22,7 +20,7 @@ // ------ //$ini_array= parse_ini_file("config.ini"); - $dsn = "mysql:host=database".";port=3036;dbname=". getenv("MYSQL_DATABASE"); + $dsn = "mysql:host=db".";port=3036;dbname=". getenv("MYSQL_DATABASE"); $username = getenv("MYSQL_USER_TOM"); $password = getenv("MYSQL_PASSWORD_TOM");