mirror of
git://f0xx.org/ac/ac-ms-sfu-signaling
synced 2026-07-29 02:38:15 +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:
@@ -10,12 +10,17 @@ $script = basename($uri);
|
|||||||
$uri = preg_replace('#^/app/androidcast_project/sfu#', '', $uri);
|
$uri = preg_replace('#^/app/androidcast_project/sfu#', '', $uri);
|
||||||
|
|
||||||
$routes = [
|
$routes = [
|
||||||
'/' => 'dashboard.php',
|
'/' => 'dashboard.php',
|
||||||
'/health' => 'health.php',
|
'/dashboard' => 'dashboard.php',
|
||||||
'/health.php' => 'health.php',
|
'/dashboard.php' => 'dashboard.php',
|
||||||
'/api/rooms' => 'api/rooms.php',
|
'/health' => 'health.php',
|
||||||
'/api/join' => 'api/join.php',
|
'/health.php' => 'health.php',
|
||||||
'/api/stats' => 'api/stats.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;
|
$target = $routes[$uri] ?? null;
|
||||||
|
|||||||
Reference in New Issue
Block a user