sfu: add dashboard.php and .php suffix routes to front-controller

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-04 11:17:24 +02:00
parent c314086102
commit 61248e6c8b

View File

@@ -11,11 +11,16 @@ $uri = preg_replace('#^/app/androidcast_project/sfu#', '', $uri);
$routes = [ $routes = [
'/' => 'dashboard.php', '/' => 'dashboard.php',
'/dashboard' => 'dashboard.php',
'/dashboard.php' => 'dashboard.php',
'/health' => 'health.php', '/health' => 'health.php',
'/health.php' => 'health.php', '/health.php' => 'health.php',
'/api/rooms' => 'api/rooms.php', '/api/rooms' => 'api/rooms.php',
'/api/rooms.php' => 'api/rooms.php',
'/api/join' => 'api/join.php', '/api/join' => 'api/join.php',
'/api/join.php' => 'api/join.php',
'/api/stats' => 'api/stats.php', '/api/stats' => 'api/stats.php',
'/api/stats.php' => 'api/stats.php',
]; ];
$target = $routes[$uri] ?? null; $target = $routes[$uri] ?? null;