run.json.ts — astro Source File
Architecture documentation for run.json.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fdec5ab2_6c96_5cdd_f942_dcfe92164c41["run.json.ts"] f92f4288_d2a3_264d_4379_34b9b9c2c7f4["astro:db"] fdec5ab2_6c96_5cdd_f942_dcfe92164c41 --> f92f4288_d2a3_264d_4379_34b9b9c2c7f4 f16d8c76_2866_6150_bd14_0347b59abfe9["astro"] fdec5ab2_6c96_5cdd_f942_dcfe92164c41 --> f16d8c76_2866_6150_bd14_0347b59abfe9 style fdec5ab2_6c96_5cdd_f942_dcfe92164c41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { db, sql } from 'astro:db';
/// <reference types="@astrojs/db" />
import type { APIRoute } from 'astro';
export const GET: APIRoute = async () => {
const authors = await db.run(sql`SELECT * FROM Author`);
return new Response(JSON.stringify(authors), {
headers: {
'content-type': 'application/json',
},
});
};
Domain
Subdomains
Functions
Dependencies
- astro
- astro:db
Source
Frequently Asked Questions
What does run.json.ts do?
run.json.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in run.json.ts?
run.json.ts defines 1 function(s): GET.
What does run.json.ts depend on?
run.json.ts imports 2 module(s): astro, astro:db.
Where is run.json.ts in the architecture?
run.json.ts is located at packages/db/test/fixtures/basics/src/pages/run.json.ts (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/db/test/fixtures/basics/src/pages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free