🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 01:31
This commit is contained in:
@@ -65,8 +65,10 @@ $router->addRoute('GET', '/api/v1/health', function($request) {
|
||||
});
|
||||
|
||||
// ══ SPA Shell ═══════════════════════════════════════════════
|
||||
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||
if (!str_starts_with($path, '/api/v1/')) {
|
||||
$fullPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||
|
||||
// Check if this is an API request (works regardless of subdirectory)
|
||||
if (!str_contains($fullPath, '/api/v1/')) {
|
||||
include __DIR__ . '/shell.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user