Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  69973d28_85cd_a139_1e23_d41d8a3569f4["GET()"]
  27909955_8fe3_f954_6447_cd0596459c9d["entries.json.js"]
  69973d28_85cd_a139_1e23_d41d8a3569f4 -->|defined in| 27909955_8fe3_f954_6447_cd0596459c9d
  style 69973d28_85cd_a139_1e23_d41d8a3569f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/content-collections/src/pages/entries.json.js lines 4–16

export async function GET() {
	const oneWithSchemaConfig = await getEntry('with-schema-config', 'one');
	const twoWithCustomSlugs = await getEntry('with-custom-slugs', 'interesting-two');
	const postWithUnionSchema = await getEntry('with-union-schema', 'post');

	return new Response(
		devalue.stringify({
			oneWithSchemaConfig,
			twoWithCustomSlugs,
			postWithUnionSchema,
		})
	);
}

Subdomains

Frequently Asked Questions

What does GET() do?
GET() is a function in the astro codebase, defined in packages/astro/test/fixtures/content-collections/src/pages/entries.json.js.
Where is GET() defined?
GET() is defined in packages/astro/test/fixtures/content-collections/src/pages/entries.json.js at line 4.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free