Deploy: 2026-05-21 19:07:54

This commit is contained in:
Hamza-Ayed
2026-05-21 19:07:54 +03:00
parent 3d344cab97
commit 860654aa3f
4 changed files with 40 additions and 15 deletions

View File

@@ -22,7 +22,8 @@ $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');
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
$response->sendHeaders();
readfile(__DIR__ . '/index.html');
exit;
});