[image].svg.ts — astro Source File
Architecture documentation for [image].svg.ts, a typescript file in the astro codebase.
Entity Profile
Relationship Graph
Source Code
export async function getStaticPaths() {
return [{ params: { image: "1" } }, { params: { image: "2" } }];
}
export async function GET({ params }) {
return new Response(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200">
<title>${params.image}</title>
</svg>`,
{
headers: {
'content-type': 'image/svg+xml',
},
}
);
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does [image].svg.ts do?
[image].svg.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 [image].svg.ts?
[image].svg.ts defines 2 function(s): GET, getStaticPaths.
Where is [image].svg.ts in the architecture?
[image].svg.ts is located at packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/[image].svg.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/with-endpoint-routes/src/pages/images).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free