Update: 2026-05-03 18:21:19

This commit is contained in:
Hamza-Ayed
2026-05-03 18:21:19 +03:00
parent 2c8ed7e742
commit fdd850e3af

View File

@@ -5,6 +5,9 @@
require_once __DIR__ . '/../app/bootstrap/init.php';
// Global Request Logging (for debugging on server)
error_log("Incoming Request: " . ($_SERVER['REQUEST_METHOD'] ?? 'GET') . " " . ($_SERVER['REQUEST_URI'] ?? '/'));
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$route = $_GET['route'] ?? str_replace('/api/', '', $uri);
$route = trim($route, '/');