Update: 2026-05-03 18:01:58

This commit is contained in:
Hamza-Ayed
2026-05-03 18:01:58 +03:00
parent 8c584625da
commit 501fd96dc1
2 changed files with 130 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ if (isset($routes[$route])) {
if (str_starts_with($route, 'v1/')) {
json_error("Not Found: {$route}", 404);
} else {
// Fallback for non-API requests (Frontend)
echo "<h1>Musadaq API - Pure PHP</h1><p>Running on simple architecture.</p>";
// Not an API request — serve the SPA shell
include __DIR__ . '/shell.php';
exit;
}
}