mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
16 lines
438 B
TypeScript
16 lines
438 B
TypeScript
import { ProvisionDefinitions } from "@blitzkit/core";
|
|
import { api } from "../../../blitzkit/api";
|
|
import { vfs } from "../../../core/blitzkit/vfs";
|
|
|
|
export { getStaticPaths } from "../_index";
|
|
|
|
export async function GET() {
|
|
const definitions = await api.provisions();
|
|
|
|
return Response.json(await vfs.yaml("Data/Strings/en.yaml"));
|
|
|
|
const bytes = ProvisionDefinitions.encode(definitions).finish();
|
|
|
|
return new Response(bytes);
|
|
}
|