Files
blitzkit/packages/website/src/pages/[...chunk_api]/definitions/game.pb.ts
T

11 lines
311 B
TypeScript
Raw Normal View History

2026-08-04 13:07:27 -05:00
import { GameDefinitions } from "@blitzkit/core";
2026-08-06 20:10:29 -05:00
import { api } from "../../../core/blitzkit/api";
2026-08-04 13:07:27 -05:00
2026-08-06 20:10:29 -05:00
export { getStaticPaths } from "../_index";
2026-08-04 13:07:27 -05:00
export async function GET() {
2026-08-30 14:26:08 -05:00
const definitions = await api.game();
2026-08-04 13:07:27 -05:00
const bytes = GameDefinitions.encode(definitions).finish();
return new Response(bytes);
}