From ba654296e98c4e745a294f51782e99847db7a1c8 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Fri, 14 Nov 2025 10:40:46 -0600 Subject: [PATCH] Fix API proxy path - maintain /api/ prefix for backend calls --- frontend/src/app/api/[...path]/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/api/[...path]/route.ts b/frontend/src/app/api/[...path]/route.ts index 5f9268a3..0474b0c0 100644 --- a/frontend/src/app/api/[...path]/route.ts +++ b/frontend/src/app/api/[...path]/route.ts @@ -36,6 +36,7 @@ export async function DELETE( async function proxyToBackend(request: NextRequest, pathSegments: string[]) { const path = pathSegments.join('/'); // Use dedicated backend subdomain for reliable API access + // The catch-all route strips '/api/' from the path, so we need to add it back const backendUrl = `https://files.mad-lawsuit.org/api/${path}`; // Get the search params from the original request