Home / File/ index.json.ts — astro Source File

index.json.ts — astro Source File

Architecture documentation for index.json.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  383008cf_430d_b5fd_7cb7_30c7adcebae0["index.json.ts"]
  48f80d01_e646_3924_78f6_a9d836644746["astro:content"]
  383008cf_430d_b5fd_7cb7_30c7adcebae0 --> 48f80d01_e646_3924_78f6_a9d836644746
  style 383008cf_430d_b5fd_7cb7_30c7adcebae0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { getCollection } from 'astro:content';

// Generates a JSON file containing content collection data for testing.
export const GET = async () => {
	return new Response(JSON.stringify({
		'data-cl': await getCollection('data-cl'),
		'data-cl-json': await getCollection('data-cl-json'),
		'data-schema-misuse': await getCollection('data-schema-misuse'),
	}));
};

Subdomains

Functions

Dependencies

  • astro:content

Frequently Asked Questions

What does index.json.ts do?
index.json.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in index.json.ts?
index.json.ts defines 1 function(s): GET.
What does index.json.ts depend on?
index.json.ts imports 1 module(s): astro:content.
Where is index.json.ts in the architecture?
index.json.ts is located at packages/astro/test/fixtures/content-intellisense/src/pages/index.json.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/content-intellisense/src/pages).

Analyze Your Own Codebase

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

Try Supermodel Free