From c2ad749b84c9271e215c785cf3ad3871913b4588 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 22 Mar 2026 10:04:14 +0200 Subject: [PATCH] run the app from public index file --- bootstrap/app.php | 18 ++++++++++++++++++ bootstrap/container.php | 9 +++++++++ public/index.php | 7 +++++++ 3 files changed, 34 insertions(+) create mode 100644 bootstrap/app.php create mode 100644 bootstrap/container.php create mode 100644 public/index.php diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..20ac063 --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,18 @@ +addErrorMiddleware(true, true, true); + +$app->get('/', function (Response $response) { + $response->getBody()->write("Hello world!"); + return $response; +}); + +return $app; diff --git a/bootstrap/container.php b/bootstrap/container.php new file mode 100644 index 0000000..3a35c97 --- /dev/null +++ b/bootstrap/container.php @@ -0,0 +1,9 @@ +run();