Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

Architecture documentation for the GET() function in glob.json.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0fa29740_68f2_9c1d_3764_63d11969963b["GET()"]
  e8a99906_ef99_4cd6_b45e_ac8cb30d8237["glob.json.js"]
  0fa29740_68f2_9c1d_3764_63d11969963b -->|defined in| e8a99906_ef99_4cd6_b45e_ac8cb30d8237
  style 0fa29740_68f2_9c1d_3764_63d11969963b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/test/fixtures/mdx-frontmatter-injection/src/pages/glob.json.js lines 1–6

export async function GET() {
	const docs = await import.meta.glob('./*.mdx', { eager: true });
	return new Response(
		JSON.stringify(Object.values(docs).map(doc => doc.frontmatter))
	);
}

Domain

Subdomains

Frequently Asked Questions

What does GET() do?
GET() is a function in the astro codebase, defined in packages/integrations/mdx/test/fixtures/mdx-frontmatter-injection/src/pages/glob.json.js.
Where is GET() defined?
GET() is defined in packages/integrations/mdx/test/fixtures/mdx-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