diff options
Diffstat (limited to 'src/public/index.php')
| -rw-r--r-- | src/public/index.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/public/index.php b/src/public/index.php new file mode 100644 index 0000000..2709bc0 --- /dev/null +++ b/src/public/index.php @@ -0,0 +1,11 @@ +<?php + +// Front controller: single entry point for all HTTP requests. + +declare(strict_types=1); + +require_once __DIR__ . '/../app/bootstrap.php'; + +$router = new \App\Router(); +require_once __DIR__ . '/../config/routes.php'; +$router->dispatch(); |
