diff --git a/docs/02-app/02-api-reference/02-file-conventions/route.mdx b/docs/02-app/02-api-reference/02-file-conventions/route.mdx index afe7b17c3bf80..6a02881797be8 100644 --- a/docs/02-app/02-api-reference/02-file-conventions/route.mdx +++ b/docs/02-app/02-api-reference/02-file-conventions/route.mdx @@ -7,13 +7,13 @@ Route Handlers allow you to create custom request handlers for a given route usi ```ts filename="route.ts" switcher export async function GET() { - return new Response.json({ message: 'Hello World' }) + return Response.json({ message: 'Hello World' }) } ``` ```js filename="route.js" switcher export async function GET() { - return new Response.json({ message: 'Hello World' }) + return Response.json({ message: 'Hello World' }) } ```