GET() — ui Function Reference
Architecture documentation for the GET() function in route.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 05aaea85_1118_3f0c_ff49_edaceb3ac8f9["GET()"] 8acacf89_8b2a_e317_20a4_c8f7bb2d83b1["route.tsx"] 05aaea85_1118_3f0c_ff49_edaceb3ac8f9 -->|defined in| 8acacf89_8b2a_e317_20a4_c8f7bb2d83b1 67a61a70_ea6d_d43c_bd80_7e574bd15591["loadAssets()"] 05aaea85_1118_3f0c_ff49_edaceb3ac8f9 -->|calls| 67a61a70_ea6d_d43c_bd80_7e574bd15591 style 05aaea85_1118_3f0c_ff49_edaceb3ac8f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/app/(app)/og/route.tsx lines 38–117
export async function GET(request: Request) {
const { searchParams } = new URL(request.url)
const title = searchParams.get("title")
const description = searchParams.get("description")
const [fonts] = await Promise.all([loadAssets()])
return new ImageResponse(
(
<div
tw="flex h-full w-full bg-black text-white"
style={{ fontFamily: "Geist Sans" }}
>
<div tw="flex border absolute border-stone-700 border-dashed inset-y-0 left-16 w-[1px]" />
<div tw="flex border absolute border-stone-700 border-dashed inset-y-0 right-16 w-[1px]" />
<div tw="flex border absolute border-stone-700 inset-x-0 h-[1px] top-16" />
<div tw="flex border absolute border-stone-700 inset-x-0 h-[1px] bottom-16" />
<div tw="flex absolute flex-row bottom-24 right-24 text-white">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256"
width={48}
height={48}
>
<rect width="256" height="256" fill="none"></rect>
<line
x1="208"
y1="128"
x2="128"
y2="208"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
></line>
<line
x1="192"
y1="40"
x2="40"
y2="192"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
></line>
</svg>
</div>
<div tw="flex flex-col absolute w-[896px] justify-center inset-32">
<div
tw="tracking-tight flex-grow-1 flex flex-col justify-center leading-[1.1]"
style={{
textWrap: "balance",
fontWeight: 600,
fontSize: title && title.length > 20 ? 64 : 80,
letterSpacing: "-0.04em",
}}
>
{title}
</div>
<div
tw="text-[40px] leading-[1.5] flex-grow-1 text-stone-400"
style={{
fontWeight: 500,
textWrap: "balance",
}}
>
{description}
</div>
</div>
</div>
),
{
width: 1200,
height: 628,
fonts,
}
)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the ui codebase, defined in deprecated/www/app/(app)/og/route.tsx.
Where is GET() defined?
GET() is defined in deprecated/www/app/(app)/og/route.tsx at line 38.
What does GET() call?
GET() calls 1 function(s): loadAssets.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free