Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

Architecture documentation for the GET() function in [slug].json.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  1c4e6690_3708_80d0_5e95_4ff78533b0da["GET()"]
  107076da_4068_ca60_7bb2_841e523fcbf1["[slug].json.ts"]
  1c4e6690_3708_80d0_5e95_4ff78533b0da -->|defined in| 107076da_4068_ca60_7bb2_841e523fcbf1
  style 1c4e6690_3708_80d0_5e95_4ff78533b0da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/static-build/src/pages/data/[slug].json.ts lines 8–14

export async function GET({ params }) {
    return Response.json({
        slug: params.slug,
        name: 'Astro Technology Company',
        url: 'https://astro.build/'
    });
}

Subdomains

Frequently Asked Questions

What does GET() do?
GET() is a function in the astro codebase, defined in packages/astro/test/fixtures/static-build/src/pages/data/[slug].json.ts.
Where is GET() defined?
GET() is defined in packages/astro/test/fixtures/static-build/src/pages/data/[slug].json.ts at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free