[ci] format
This commit is contained in:
parent
d92ab06544
commit
c48d4765c1
2 changed files with 11 additions and 7 deletions
|
@ -2,8 +2,10 @@
|
||||||
// The content type is based off of the extension in the filename,
|
// The content type is based off of the extension in the filename,
|
||||||
// in this case: about.json.
|
// in this case: about.json.
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
return new Response(JSON.stringify({
|
return new Response(
|
||||||
name: 'Astro',
|
JSON.stringify({
|
||||||
url: 'https://astro.build/',
|
name: 'Astro',
|
||||||
}));
|
url: 'https://astro.build/',
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,9 @@ export async function POST({ cookies, request }: APIContext) {
|
||||||
cart.set(item.id, { id: item.id, name: item.name, count: 1 });
|
cart.set(item.id, { id: item.id, name: item.name, count: 1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(JSON.stringify({
|
return new Response(
|
||||||
ok: true,
|
JSON.stringify({
|
||||||
}));
|
ok: true,
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue