Home / File/ all.json.js — astro Source File

all.json.js — astro Source File

Architecture documentation for all.json.js, a javascript file in the astro codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  660d442c_f682_7cda_6cab_aeacf58ccae8["all.json.js"]
  48f80d01_e646_3924_78f6_a9d836644746["astro:content"]
  660d442c_f682_7cda_6cab_aeacf58ccae8 --> 48f80d01_e646_3924_78f6_a9d836644746
  style 660d442c_f682_7cda_6cab_aeacf58ccae8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { getCollection } from 'astro:content';

export async function GET() {
	const authors = await getCollection('authors');
	return Response.json(authors);
}

Subdomains

Functions

Dependencies

  • astro:content

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free