MCPcopy
hub / github.com/nextjs/saas-starter / GET

Function GET

app/api/user/route.ts:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { getUser } from '@/lib/db/queries';
2
3export async function GET() {
4 const user = await getUser();
5 return Response.json(user);
6}

Callers

nothing calls this directly

Calls 1

getUserFunction · 0.90

Tested by

no test coverage detected