[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,
|
||||
// in this case: about.json.
|
||||
export async function GET() {
|
||||
return new Response(JSON.stringify({
|
||||
name: 'Astro',
|
||||
url: 'https://astro.build/',
|
||||
}));
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
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 });
|
||||
}
|
||||
|
||||
return new Response(JSON.stringify({
|
||||
ok: true,
|
||||
}));
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
ok: true,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue