diff options
Diffstat (limited to 'examples/non-html-pages')
-rw-r--r-- | examples/non-html-pages/src/pages/about.json.ts | 10 |
1 files changed, 6 insertions, 4 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/', + }) + ); } |