GET() — ui Function Reference
Architecture documentation for the GET() function in route.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d1d9120f_76bb_4400_ffbd_020e055d759e["GET()"] 993e89cf_1de1_c1e6_a529_83575e8c846b["route.ts"] d1d9120f_76bb_4400_ffbd_020e055d759e -->|defined in| 993e89cf_1de1_c1e6_a529_83575e8c846b style d1d9120f_76bb_4400_ffbd_020e055d759e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/rss.xml/route.ts lines 8–44
export async function GET() {
const pages = getChangelogPages()
const items = pages
.map((page) => {
const data = page.data as ChangelogPageData
const date = page.date?.toUTCString() ?? new Date().toUTCString()
const link = `${siteConfig.url}/docs/${page.slugs.join("/")}`
return ` <item>
<title><![CDATA[${data.title}]]></title>
<link>${link}</link>
<guid>${link}</guid>
<description><![CDATA[${data.description || ""}]]></description>
<pubDate>${date}</pubDate>
</item>`
})
.join("\n")
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>${siteConfig.name} Changelog</title>
<link>${siteConfig.url}</link>
<description>${siteConfig.description}</description>
<language>en-us</language>
<atom:link href="${siteConfig.url}/rss.xml" rel="self" type="application/rss+xml"/>
${items}
</channel>
</rss>`
return new NextResponse(xml, {
headers: {
"Content-Type": "application/rss+xml; charset=utf-8",
},
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the ui codebase, defined in apps/v4/app/rss.xml/route.ts.
Where is GET() defined?
GET() is defined in apps/v4/app/rss.xml/route.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free