[ci] format

This commit is contained in:
bluwy 2023-09-04 15:12:28 +00:00 committed by astrobot-houston
parent d92ab06544
commit c48d4765c1
2 changed files with 11 additions and 7 deletions

View file

@ -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/',
})
);
} }

View file

@ -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,
})
);
} }