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() {