GET() — astro Function Reference
Architecture documentation for the GET() function in glob.json.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1e1bda8d_a708_bf1e_bd25_499c92ed4739["GET()"] 6b93e767_2e55_5f98_321d_cdcbf2fafef3["glob.json.js"] 1e1bda8d_a708_bf1e_bd25_499c92ed4739 -->|defined in| 6b93e767_2e55_5f98_321d_cdcbf2fafef3 style 1e1bda8d_a708_bf1e_bd25_499c92ed4739 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/pages/glob.json.js lines 1–4
export async function GET() {
const docs = await import.meta.glob('./*.md', { eager: true });
return Response.json(Object.values(docs).map((doc) => doc.frontmatter));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the astro codebase, defined in packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/pages/glob.json.js.
Where is GET() defined?
GET() is defined in packages/astro/test/fixtures/astro-markdown-frontmatter-injection/src/pages/glob.json.js at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free