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:
parent
dbff442c86
commit
d7fff03e39
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue