diff --git a/packages/website-ue/src/pages/api/enums/[enum].json.ts b/packages/website-ue/src/pages/api/enums/[enum].json.ts index 35cef46b4..1fcf326eb 100644 --- a/packages/website-ue/src/pages/api/enums/[enum].json.ts +++ b/packages/website-ue/src/pages/api/enums/[enum].json.ts @@ -1,8 +1,13 @@ +import { TankClass, TankType } from "@blitzkit/core"; import { Nation } from "@protos/blitz_static_tank_component"; import type { APIContext, GetStaticPaths } from "astro"; +import { GunType } from "../../../core/tankopedia/characteristics"; const enums = { nation: Nation, + "tank-class": TankClass, + "tank-type": TankType, + "gun-type": GunType, }; export const getStaticPaths = (() => { @@ -10,7 +15,14 @@ export const getStaticPaths = (() => { }) satisfies GetStaticPaths; /** - * The one who wipes, swipes. + * Enumerations used within BlitzKit, for nominal development reference only. + * + * DO NOT programmatically use this API as it is designed solely for human + * reference. + * + * DO NOT blindly copy entries as naming conventions vary. Most enums come + * directly from the game which uses a SCREAMING_SNAKE_CASE convention while + * BlitzKit uses PascalCase. */ export function GET({ params, diff --git a/packages/website-ue/src/pages/api/index.astro b/packages/website-ue/src/pages/api/index.astro index e3ed04e42..8ecaa28f6 100644 --- a/packages/website-ue/src/pages/api/index.astro +++ b/packages/website-ue/src/pages/api/index.astro @@ -51,7 +51,7 @@ paths.sort((a, b) => a.path.localeCompare(b.path)); paths.map(({ path, documentation }) => ( <>
{documentation}
+{documentation}
>
))
}