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