diff options
| author | 2023-09-04 15:12:28 +0000 | |
|---|---|---|
| committer | 2023-09-04 15:12:28 +0000 | |
| commit | c48d4765c12ca28f4e1fa056959dce9016277b05 (patch) | |
| tree | c30cd6cc319fccb9771889b0422bc5501d363deb | |
| parent | d92ab065445b2ba904f01dae2c320d70af1e1f72 (diff) | |
| download | astro-c48d4765c12ca28f4e1fa056959dce9016277b05.tar.gz astro-c48d4765c12ca28f4e1fa056959dce9016277b05.tar.zst astro-c48d4765c12ca28f4e1fa056959dce9016277b05.zip | |
[ci] format
| -rw-r--r-- | examples/non-html-pages/src/pages/about.json.ts | 10 | ||||
| -rw-r--r-- | 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 7f98ba9fe..8fa365724 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 12c1b857a..cc6ba231b 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, + }) + ); } |
