+
+
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
index 639f74d..b2ca53c 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/Source/API/Dockerfile b/Source/API/Dockerfile
new file mode 100644
index 0000000..8a4ee87
--- /dev/null
+++ b/Source/API/Dockerfile
@@ -0,0 +1,4 @@
+FROM php:8.0-apache
+RUN apt-get update && apt-get upgrade -y
+RUN docker-php-ext-install pdo pdo_mysql
+COPY ./script /var/www/html
\ No newline at end of file
diff --git a/Source/API/script/APIController.php b/Source/API/script/APIController.php
new file mode 100644
index 0000000..5e85c66
--- /dev/null
+++ 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);
+ }
+
+}
diff --git a/Source/API/script/Config/Connection.php b/Source/API/script/Config/Connection.php
new file mode 100644
index 0000000..942a479
--- /dev/null
+++ b/Source/API/script/Config/Connection.php
@@ -0,0 +1,33 @@
+setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+ }
+
+
+ /** * @param string $query
+ * @param array $parameters *
+ * @return bool Returns `true` on success, `false` otherwise
+ */
+ public function executeQuery(string $query, array $parameters = []): bool
+ {
+ $this->stmt = parent::prepare($query);
+ foreach ($parameters as $name => $value) {
+ $this->stmt->bindValue($name, $value[0], $value[1]);
+ }
+
+ return $this->stmt->execute();
+ }
+
+ public function getResults(): array
+ {
+ return $this->stmt->fetchAll();
+
+ }
+}
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 @@
+