Deploy: 2026-05-21 19:07:54
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user