diff options
-rw-r--r-- | examples/ssr/src/pages/api/products/[id].ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/pages/api/products/[id].ts b/examples/ssr/src/pages/api/products/[id].ts index abcd02da8..f0f6fa89f 100644 --- a/examples/ssr/src/pages/api/products/[id].ts +++ b/examples/ssr/src/pages/api/products/[id].ts @@ -6,7 +6,7 @@ export function GET({ params }: APIContext) { if (productMap.has(id)) { const product = productMap.get(id); - return new Response(JSON.stringify(products)); + return new Response(JSON.stringify(product)); } else { return new Response(null, { status: 400, |