From 1ffebff24cfc54dc8da6f58af3e9816f29c312a4 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 15 Feb 2026 09:34:17 -0700 Subject: [PATCH] Use top-level rvote proposals endpoint (space-scoped route broken on server) Co-Authored-By: Claude Opus 4.6 --- src/app/api/proxy/rvote/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }); }