Update: 2026-05-03 18:01:58
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user