fix(rectification): start new case from homepage
This commit is contained in:
@@ -12,7 +12,7 @@ export const runtime = "nodejs";
|
||||
/**
|
||||
* GET /api/rectification/cases/entry-summary
|
||||
*
|
||||
* Server-truth homepage CTA: "开始生时校正" / "继续上次校正" / "再次校正".
|
||||
* Server-truth context for homepage copy; the primary homepage action always creates.
|
||||
*/
|
||||
export async function GET() {
|
||||
let supabase;
|
||||
|
||||
@@ -28,7 +28,7 @@ function serviceErrorResponse(error: unknown) {
|
||||
*
|
||||
* Browser sends only { intent, requestId } (+ sessionId for intent=session).
|
||||
* The server derives the user from the session, normalizes the profile and
|
||||
* decides resume-or-create. Double-click / multi-tab are idempotent.
|
||||
* creates for homepage/new or restores the exact requested session. Retries are idempotent.
|
||||
*/
|
||||
export async function POST(request: Request) {
|
||||
let supabase;
|
||||
|
||||
Reference in New Issue
Block a user