diff --git a/backend/public/index.php b/backend/public/index.php index bf436a4..2adb344 100644 --- a/backend/public/index.php +++ b/backend/public/index.php @@ -20,6 +20,13 @@ $router = new Router(); $router->use(\App\Middlewares\SecurityMiddleware::class); // 4. Define API Routes +// Serve index.html dashboard on root path +$router->get('/', function ($request, $response) { + header('Content-Type: text/html; charset=utf-8'); + readfile(__DIR__ . '/index.html'); + exit; +}); + // Health Check — no php_version or environment in production to avoid info disclosure $router->get('/api/health', function ($request, $response) { $response->json([