Home / File/ [param].js — astro Source File

[param].js — astro Source File

Architecture documentation for [param].js, a javascript file in the astro codebase.

Entity Profile

Relationship Graph

Source Code

/**
 * @param {import('astro').APIContext} api
 */
export function GET(ctx) {
	return Response.json({
		cookiesExist: !!ctx.cookies,
		requestExist: !!ctx.request,
		redirectExist: !!ctx.redirect,
		propsExist: !!ctx.props,
		params: ctx.params,
		site: ctx.site?.toString(),
		generator: ctx.generator,
		url: ctx.url.toString(),
		clientAddress: ctx.clientAddress,
	});
}

Subdomains

Functions

Frequently Asked Questions

What does [param].js do?
[param].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 [param].js?
[param].js defines 1 function(s): GET.
Where is [param].js in the architecture?
[param].js is located at packages/astro/test/fixtures/ssr-api-route/src/pages/context/[param].js (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/ssr-api-route/src/pages/context).

Analyze Your Own Codebase

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

Try Supermodel Free