From 182e8572fafca716da0cab20142a42031d7c90eb Mon Sep 17 00:00:00 2001 From: oib Date: Sat, 14 Feb 2026 16:48:38 +0100 Subject: [PATCH] fix: remove /v1 from marketplace API fetch paths nginx /api/ already maps to /v1/, so fetch paths should be /api/marketplace/* not /api/v1/marketplace/* (double prefix) --- apps/marketplace-web/src/lib/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/marketplace-web/src/lib/api.ts b/apps/marketplace-web/src/lib/api.ts index 2bc7dcb6..26d2abc4 100644 --- a/apps/marketplace-web/src/lib/api.ts +++ b/apps/marketplace-web/src/lib/api.ts @@ -69,7 +69,7 @@ export async function fetchMarketplaceStats(): Promise { return request(`${CONFIG.mockBase}/stats.json`); } - return request(`${CONFIG.apiBase}/v1/marketplace/stats`); + return request(`${CONFIG.apiBase}/marketplace/stats`); } export async function fetchMarketplaceOffers(): Promise { @@ -78,7 +78,7 @@ export async function fetchMarketplaceOffers(): Promise { return payload.offers; } - return request(`${CONFIG.apiBase}/v1/marketplace/offers`); + return request(`${CONFIG.apiBase}/marketplace/offers`); } export async function submitMarketplaceBid(input: { @@ -100,7 +100,7 @@ export async function submitMarketplaceBid(input: { throw new Error("Authentication required to submit bids"); } - const response = await fetch(`${CONFIG.apiBase}/v1/marketplace/bids`, { + const response = await fetch(`${CONFIG.apiBase}/marketplace/bids`, { method: "POST", headers: { "Content-Type": "application/json",