sailfork / t3code-github / .repos/ alchemy-effect/ examples/ aws-website-vinext/ app/ api/ hello/ route.ts

export function GET(request: Request) {
  const name = new URL(request.url).searchParams.get("name") ?? "world";
  return Response.json({ name, greeting: process.env.GREETING ?? "hello" });
}