From 6373f7572fc77f704d530f7451e57db65e5fa549 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 3 May 2026 01:22:54 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=D8=A5=D8=B9=D8=A7=D8=AF=D8=A9?= =?UTF-8?q?=20=D9=83=D8=AA=D8=A7=D8=A8=D8=A9=20shell.php=20=D8=A8=D8=A7?= =?UTF-8?q?=D9=84=D9=83=D8=A7=D9=85=D9=84=20=E2=80=94=20Vanilla=20JS=20?= =?UTF-8?q?=D8=A8=D8=AF=D9=88=D9=86=20Alpine.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/api.js | 5 +- public/shell.php | 325 +++++++++++++++++++++++----------------- 2 files changed, 185 insertions(+), 145 deletions(-) diff --git a/public/assets/js/api.js b/public/assets/js/api.js index 5f1ec13..19bd972 100644 --- a/public/assets/js/api.js +++ b/public/assets/js/api.js @@ -2,7 +2,7 @@ * مُصادَق — API Client with JWT Auth & Refresh Flow */ const API = { - baseUrl: '/api/v1', + baseUrl: '/Application/public/api.php', accessToken: localStorage.getItem('access_token'), async get(path) { @@ -39,7 +39,6 @@ const API = { }); if (response.status === 401) { - // Try refresh token const refreshed = await this.refreshToken(); if (refreshed) { return this._request(method, path, body, isFormData); @@ -72,5 +71,3 @@ const API = { return false; } }; - -export default API; diff --git a/public/shell.php b/public/shell.php index 47b84eb..63f015e 100644 --- a/public/shell.php +++ b/public/shell.php @@ -8,7 +8,6 @@ - + +