next.js/test/e2e/app-dir/app-routes/app/advanced/query/route.ts
route.ts13 lines331 B
import { withRequestMeta } from '../../../helpers'
import { NextRequest } from 'next/server'

export async function GET(request: NextRequest): Promise<Response> {
  const { searchParams } = request.nextUrl

  return new Response('hello, world', {
    headers: withRequestMeta({
      ping: searchParams.get('ping'),
    }),
  })
}
Quest for Codev2.0.0
/
SIGN IN