mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
import { ConsumableDefinitions } from "@blitzkit/core";
|
|
import { api } from "../../../core/blitzkit/api";
|
|
|
|
export { getStaticPaths } from "../_index";
|
|
|
|
export async function GET() {
|
|
const definitions = await api.consumableDefinitions();
|
|
|
|
console.dir(definitions, { depth: null });
|
|
|
|
const bytes = ConsumableDefinitions.encode(definitions).finish();
|
|
|
|
return new Response(bytes);
|
|
}
|