GET() — astro Function Reference
Architecture documentation for the GET() function in glob.json.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b232d894_2a27_a95c_0fde_9da834eb50cd["GET()"] 29930262_6103_3409_dd08_d553760963a7["glob.json.js"] b232d894_2a27_a95c_0fde_9da834eb50cd -->|defined in| 29930262_6103_3409_dd08_d553760963a7 style b232d894_2a27_a95c_0fde_9da834eb50cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/mdx/test/fixtures/mdx-frontmatter/src/pages/glob.json.js lines 1–6
export async function GET() {
const mdxPages = await import.meta.glob('./*.mdx', { eager: true });
return Response.json({
titles: Object.values(mdxPages ?? {}).map((v) => v?.frontmatter?.title),
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the astro codebase, defined in packages/integrations/mdx/test/fixtures/mdx-frontmatter/src/pages/glob.json.js.
Where is GET() defined?
GET() is defined in packages/integrations/mdx/test/fixtures/mdx-frontmatter/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