GET() — astro Function Reference
Architecture documentation for the GET() function in rss.xml.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD aed9e148_eff9_1854_de34_efb272b9ac20["GET()"] 6643ef7b_3cd4_fdee_9d10_a5ab9a414fe7["rss.xml.js"] aed9e148_eff9_1854_de34_efb272b9ac20 -->|defined in| 6643ef7b_3cd4_fdee_9d10_a5ab9a414fe7 style aed9e148_eff9_1854_de34_efb272b9ac20 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
examples/blog/src/pages/rss.xml.js lines 5–16
export async function GET(context) {
const posts = await getCollection('blog');
return rss({
title: SITE_TITLE,
description: SITE_DESCRIPTION,
site: context.site,
items: posts.map((post) => ({
...post.data,
link: `/blog/${post.id}/`,
})),
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the astro codebase, defined in examples/blog/src/pages/rss.xml.js.
Where is GET() defined?
GET() is defined in examples/blog/src/pages/rss.xml.js at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free