route.ts — ui Source File
Architecture documentation for route.ts, a typescript file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 993e89cf_1de1_c1e6_a529_83575e8c846b["route.ts"] e6d8fc0a_e169_2eda_cf08_affb3ed577e3["server"] 993e89cf_1de1_c1e6_a529_83575e8c846b --> e6d8fc0a_e169_2eda_cf08_affb3ed577e3 91c520d7_49d8_7114_fe09_6cee1435116f["changelog"] 993e89cf_1de1_c1e6_a529_83575e8c846b --> 91c520d7_49d8_7114_fe09_6cee1435116f 8964a549_2e67_58d7_11c7_c9265d5c7971["config"] 993e89cf_1de1_c1e6_a529_83575e8c846b --> 8964a549_2e67_58d7_11c7_c9265d5c7971 style 993e89cf_1de1_c1e6_a529_83575e8c846b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { NextResponse } from "next/server"
import { getChangelogPages, type ChangelogPageData } from "@/lib/changelog"
import { siteConfig } from "@/lib/config"
export const revalidate = false
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
Functions
Dependencies
- changelog
- config
- server
Source
Frequently Asked Questions
What does route.ts do?
route.ts is a source file in the ui codebase, written in typescript. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in route.ts?
route.ts defines 1 function(s): GET.
What does route.ts depend on?
route.ts imports 3 module(s): changelog, config, server.
Where is route.ts in the architecture?
route.ts is located at apps/v4/app/rss.xml/route.ts (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/rss.xml).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free