diff --git a/Source/API/script/APIController.php b/Source/API/script/APIController.php index e69de29..f394218 100644 --- a/Source/API/script/APIController.php +++ b/Source/API/script/APIController.php @@ -0,0 +1,29 @@ +$action(); // Si oui, on appelle cette fonction + } + } + + } catch (PDOException) { + return http_response_code(404); + } + exit(0); + } + +} \ No newline at end of file diff --git a/Source/API/script/Connection.php b/Source/API/script/Config/Connection.php similarity index 100% rename from Source/API/script/Connection.php rename to Source/API/script/Config/Connection.php diff --git a/Source/API/script/Config/config.php b/Source/API/script/Config/config.php new file mode 100644 index 0000000..c5f00a2 --- /dev/null +++ b/Source/API/script/Config/config.php @@ -0,0 +1,22 @@ +getMessage(); - echo $PDOException->getCode(); - phpinfo(); - return http_response_code(404); -} diff --git a/Source/API/script/tmp.php b/Source/API/script/tmp.php deleted file mode 100644 index d4f7467..0000000 --- a/Source/API/script/tmp.php +++ /dev/null @@ -1,3 +0,0 @@ -HEY"; \ No newline at end of file