🚀 مُصادَق: تحديث برمجي جديد 2026-05-03 01:29

This commit is contained in:
Hamza-Ayed
2026-05-03 01:29:45 +03:00
parent db1c3d60f0
commit c21113018f

View File

@@ -76,7 +76,7 @@
// مُصادَق — API Client (Inlined for reliability) // مُصادَق — API Client (Inlined for reliability)
// ══════════════════════════════════════════════════════════ // ══════════════════════════════════════════════════════════
const API = { const API = {
baseUrl: 'api.php', // Use relative path to api.php baseUrl: 'index.php/api/v1', // Correct entry point and prefix
accessToken: localStorage.getItem('access_token'), accessToken: localStorage.getItem('access_token'),
async post(path, body) { async post(path, body) {
const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }; const headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' };