From b0e79fd214ca9e6d9186ed623bb7437b703334c8 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 3 May 2026 20:47:13 +0300 Subject: [PATCH] Update: 2026-05-03 20:47:13 --- app/modules_app/trips/index.php | 28 ---------------------------- public/index.php | 6 ------ public/shell.php | 3 +-- 3 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 app/modules_app/trips/index.php diff --git a/app/modules_app/trips/index.php b/app/modules_app/trips/index.php deleted file mode 100644 index fb5c650..0000000 --- a/app/modules_app/trips/index.php +++ /dev/null @@ -1,28 +0,0 @@ -prepare("SELECT * FROM trips WHERE user_id = ? ORDER BY created_at DESC"); - $stmt->execute([$decoded['user_id']]); - $trips = $stmt->fetchAll(); - - json_success($trips); -} catch (\PDOException $e) { - // If table doesn't exist, return empty for the sake of the skeleton - json_success([], 'Trips table not found, returning empty array for demonstration.'); -} diff --git a/public/index.php b/public/index.php index 76ec1f7..47ee75e 100644 --- a/public/index.php +++ b/public/index.php @@ -17,16 +17,10 @@ error_log("Router: Resolved route for URI '{$uri}' is '{$route}'"); // Mapping routes to modules $routes = [ - 'auth/login' => 'auth/login.php', 'v1/auth/login' => 'auth/login.php', - 'auth/refresh' => 'auth/refresh.php', 'v1/auth/refresh' => 'auth/refresh.php', - 'auth/logout' => 'auth/logout.php', 'v1/auth/logout' => 'auth/logout.php', - 'users' => 'users/index.php', 'v1/users' => 'users/index.php', - 'trips' => 'trips/index.php', - 'v1/trips' => 'trips/index.php', ]; if (isset($routes[$route])) { diff --git a/public/shell.php b/public/shell.php index cb13f7c..3899bd3 100644 --- a/public/shell.php +++ b/public/shell.php @@ -31,7 +31,6 @@
@@ -104,7 +103,7 @@ }, title() { - return { dashboard: 'لوحة التحكم', users: 'المستخدمون', trips: 'الرحلات' }[this.page]; + return { dashboard: 'لوحة التحكم', users: 'المستخدمون' }[this.page]; }, async loadUsers() {