From 61248e6c8b2807bfdd045c9a8cd413a45c96df5f Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Sat, 4 Jul 2026 11:17:24 +0200 Subject: [PATCH] sfu: add dashboard.php and .php suffix routes to front-controller Co-authored-by: Cursor --- public/index.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/public/index.php b/public/index.php index ce28531..51eac0f 100644 --- a/public/index.php +++ b/public/index.php @@ -10,12 +10,17 @@ $script = basename($uri); $uri = preg_replace('#^/app/androidcast_project/sfu#', '', $uri); $routes = [ - '/' => 'dashboard.php', - '/health' => 'health.php', - '/health.php' => 'health.php', - '/api/rooms' => 'api/rooms.php', - '/api/join' => 'api/join.php', - '/api/stats' => 'api/stats.php', + '/' => 'dashboard.php', + '/dashboard' => 'dashboard.php', + '/dashboard.php' => 'dashboard.php', + '/health' => 'health.php', + '/health.php' => 'health.php', + '/api/rooms' => 'api/rooms.php', + '/api/rooms.php' => 'api/rooms.php', + '/api/join' => 'api/join.php', + '/api/join.php' => 'api/join.php', + '/api/stats' => 'api/stats.php', + '/api/stats.php' => 'api/stats.php', ]; $target = $routes[$uri] ?? null;