Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

Architecture documentation for the GET() function in static.svg.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  467b155a_4d5f_0558_bebf_e3fb06ceb8c7["GET()"]
  3a3d5346_f2b9_d3a1_1d81_db94712bdb52["static.svg.ts"]
  467b155a_4d5f_0558_bebf_e3fb06ceb8c7 -->|defined in| 3a3d5346_f2b9_d3a1_1d81_db94712bdb52
  style 467b155a_4d5f_0558_bebf_e3fb06ceb8c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/static.svg.ts lines 1–12

export function GET() {
	return new Response(
		`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200">
	<title>Static SVG</title>
</svg>`,
		{
			headers: {
				'content-type': 'image/svg+xml',
			},
		}
	);
}

Subdomains

Frequently Asked Questions

What does GET() do?
GET() is a function in the astro codebase, defined in packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/static.svg.ts.
Where is GET() defined?
GET() is defined in packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/static.svg.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free