mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
use prefixed ids
This commit is contained in:
1 parent
b81d9985ee
commit
676601b06e
9 files changed
+38
-37
No files matched your search
@@ -9,8 +9,3 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
.group("TankUpgradePricePresetEntity")
|
||||
.map(({ name }) => ({ params: { id: name } }));
|
||||
});
|
||||
|
||||
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||
const preset = await api.tankUpgradePreset(params.id);
|
||||
return new Response(TankUpgradePricePresetComponent.encode(preset).finish());
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { TankUpgradePresets } from "@protos/tank_upgrade_presets";
|
||||
import { api } from "../../../api/dynamic";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
|
||||
export async function GET() {
|
||||
const preset = await api.tankUpgradePresets();
|
||||
return new Response(TankUpgradePresets.encode(preset).finish());
|
||||
}
|
||||
Reference in new issue
Block a user