mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
move protos
This commit is contained in:
1 parent
5b4ad95a14
commit
054f33a649
47 files changed
+52
-11846
No files matched your search
@@ -1,10 +1,20 @@
|
||||
import { ConsumableDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../blitzkit/api";
|
||||
import { vfs } from "../../../core/blitzkit/vfs";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
|
||||
export async function GET() {
|
||||
const test = await vfs.xml(
|
||||
"Data/XML/item_defs/vehicles/common/consumables/common.xml",
|
||||
);
|
||||
|
||||
return Response.json(test);
|
||||
|
||||
const definitions = await api.consumables();
|
||||
|
||||
return Response.json(definitions);
|
||||
|
||||
const bytes = ConsumableDefinitions.encode(definitions).finish();
|
||||
|
||||
return new Response(bytes);
|
||||
|
||||
Reference in new issue
Block a user