fix: switch API routing to query string for Nginx compatibility

This commit is contained in:
Hamza-Ayed
2026-05-03 01:34:18 +03:00
parent bbfdabad2f
commit 5100fd786e
3 changed files with 7 additions and 13 deletions

View File

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