update.ts — astro Source File
Architecture documentation for update.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 562cbf59_c270_0200_5d17_379da58b01f2["update.ts"] f16d8c76_2866_6150_bd14_0347b59abfe9["astro"] 562cbf59_c270_0200_5d17_379da58b01f2 --> f16d8c76_2866_6150_bd14_0347b59abfe9 style 562cbf59_c270_0200_5d17_379da58b01f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { APIRoute } from 'astro';
export const GET: APIRoute = async (context) => {
const previousObject = await context.session.get("key") ?? { value: "none" };
const previousValue = previousObject.value;
const sessionData = { value: "expected" };
context.session.set("key", sessionData);
sessionData.value = "unexpected";
return Response.json({previousValue});
};
Domain
Subdomains
Functions
Dependencies
- astro
Source
Frequently Asked Questions
What does update.ts do?
update.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 update.ts?
update.ts defines 1 function(s): GET.
What does update.ts depend on?
update.ts imports 1 module(s): astro.
Where is update.ts in the architecture?
update.ts is located at packages/astro/test/fixtures/sessions/src/pages/update.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/sessions/src/pages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free