Skip to content

Commit

Permalink
Update [id].ts - Fixing typo (#8902)
Browse files Browse the repository at this point in the history
  • Loading branch information
gguttikonda authored Oct 24, 2023
1 parent dbff442 commit d7fff03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ssr/src/pages/api/products/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7fff03

Please sign in to comment.