From 1cf5426f13799f3548ee889530b35cc5a12d3c35 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jun 2026 00:01:03 +0200 Subject: [PATCH] fix(souq): add missing /mobile basePath prefix to listing API fetch fetch('/api/marketplace/listings?...') was hitting the wrong URL (404) because the app is deployed under /mobile basePath. Changed to fetch('/mobile/api/marketplace/listings?...') which matches the correct API route. --- src/app/souq/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/souq/page.tsx b/src/app/souq/page.tsx index 0180808..88903a4 100644 --- a/src/app/souq/page.tsx +++ b/src/app/souq/page.tsx @@ -97,7 +97,7 @@ export default function SouqPage() { if (activeCategory !== "All") params.set("category", activeCategory); if (searchQuery.trim()) params.set("search", searchQuery.trim()); - const res = await fetch(`/api/marketplace/listings?${params.toString()}`); + const res = await fetch(`/mobile/api/marketplace/listings?${params.toString()}`); const data = await res.json(); if (res.ok) { setListings(data.listings);