feat: macro names

This commit is contained in:
TrèsAbhi committed 2026-03-19 18:44:00 -05:00
1 parent 6a58c5ea1d
commit 8d3678ddcb
8 files changed
+64 -29

No files matched your search

@@ -2,6 +2,7 @@
import "@radix-ui/colors/amber-dark.css";
import { getCollection } from "astro:content";
import ApiGroup from "../../../components/ApiGroup.astro";
import ColorScale from "../../../components/ColorScale.astro";
import { Heading } from "../../../components/Heading";
import { Section } from "../../../components/Section";
import SyntaxStyles from "../../../components/SyntaxStyles.astro";
@@ -25,8 +26,10 @@ paths.sort((a, b) => a.path.localeCompare(b.path));
---
<BaseLayout {locale} accent="brown">
<ToolBanner {locale} tool={tools.api} slot="pre-app" />
<SyntaxStyles slot="head" />
<ColorScale color="tomato" slot="head" />
<ToolBanner {locale} tool={tools.api} slot="pre-app" />
<Section>
<Heading>{strings.api.json}</Heading>
@@ -10,9 +10,12 @@ export const getStaticPaths = (async () => {
}) satisfies GetStaticPaths;
/**
* Returns data on an avatar based on its `id`.
* Returns data on an avatar based on its `id`. Do not use the `.webp` URLs
* from the returned data as they point to Wargaming's servers which may update
* over time, out of sync with BlitzKit.
*
* @see avatars/list.json for all avatar ids.
* @see avatars/[id].webp for avatar images.
* @type avatar
*/
export async function GET({ params }: APIContext<never, { id: string }>) {