0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update [id].ts - Fixing typo (#8902)

This commit is contained in:
Ganesh Guttikonda 2023-10-24 02:45:39 -07:00 committed by GitHub
parent dbff442c86
commit d7fff03e39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ export function GET({ params }: APIContext) {
if (productMap.has(id)) { if (productMap.has(id)) {
const product = productMap.get(id); const product = productMap.get(id);
return new Response(JSON.stringify(products)); return new Response(JSON.stringify(product));
} else { } else {
return new Response(null, { return new Response(null, {
status: 400, status: 400,