(req: NextRequest)
| 34 | |
| 35 | /** POST — submit picked prompt (mobile calls this when user picks an option) */ |
| 36 | export async function POST(req: NextRequest) { |
| 37 | const { sessionId, prompt } = await req.json(); |
| 38 | if (!sessionId || !prompt) { |
| 39 | return NextResponse.json({ error: "missing sessionId or prompt" }, { status: 400 }); |
| 40 | } |
| 41 | |
| 42 | setSession(sessionId, { status: "picked", prompt }); |
| 43 | return NextResponse.json({ ok: true }); |
| 44 | } |
nothing calls this directly
no test coverage detected