diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..11b28de --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^ index.php [QSA,L] \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..51d20f2 --- /dev/null +++ b/public/index.php @@ -0,0 +1,33 @@ +handle($_SERVER['REQUEST_METHOD'], $path); +} catch (Throwable $e) { + http_response_code(500); + echo json_encode(['error' => 'Erreur interne du serveur.'], JSON_UNESCAPED_UNICODE); +} \ No newline at end of file