diff --git a/src/app/api/proxy/rvote/route.ts b/src/app/api/proxy/rvote/route.ts index db8c15e..5af0fa5 100644 --- a/src/app/api/proxy/rvote/route.ts +++ b/src/app/api/proxy/rvote/route.ts @@ -17,7 +17,8 @@ export async function GET(req: NextRequest) { targetUrl = `${RVOTE_BASE}/api/spaces/${encodeURIComponent(slug)}`; } else if (endpoint === 'proposals') { const status = searchParams.get('status') || 'RANKING'; - targetUrl = `${RVOTE_BASE}/api/s/${encodeURIComponent(slug)}/api/proposals?status=${status}&limit=10`; + // Use top-level proposals endpoint (space-scoped route has schema mismatch on server) + targetUrl = `${RVOTE_BASE}/api/proposals?status=${status}&limit=10`; } else { return NextResponse.json({ error: 'Invalid endpoint' }, { status: 400 }); }