From c48d4765c12ca28f4e1fa056959dce9016277b05 Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 4 Sep 2023 15:12:28 +0000 Subject: [PATCH] [ci] format --- examples/non-html-pages/src/pages/about.json.ts | 10 ++++++---- examples/ssr/src/pages/api/cart.ts | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/examples/non-html-pages/src/pages/about.json.ts b/examples/non-html-pages/src/pages/about.json.ts index 7f98ba9fed..8fa3657243 100644 --- a/examples/non-html-pages/src/pages/about.json.ts +++ b/examples/non-html-pages/src/pages/about.json.ts @@ -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/', + }) + ); } diff --git a/examples/ssr/src/pages/api/cart.ts b/examples/ssr/src/pages/api/cart.ts index 12c1b857ab..cc6ba231b1 100644 --- a/examples/ssr/src/pages/api/cart.ts +++ b/examples/ssr/src/pages/api/cart.ts @@ -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, + }) + ); }