mirror of
git://f0xx.org/ac/ac-ms-sfu-signaling
synced 2026-07-29 03:17:39 +03:00
sfu: add dashboard.php and .php suffix routes to front-controller
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,11 +11,16 @@ $uri = preg_replace('#^/app/androidcast_project/sfu#', '', $uri);
|
||||
|
||||
$routes = [
|
||||
'/' => '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;
|
||||
|
||||
Reference in New Issue
Block a user