feat: update shit

This commit is contained in:
tresabhi committed 2026-05-07 22:22:29 -05:00
1 parent 8bda4a5331
commit 95ad6bade7
5 files changed
+14 -5

No files matched your search

@@ -31,10 +31,10 @@ const { value, locale } = Astro.props;
const strings = await api.strings(locale);
const lang = "ts";
const roots = ["src/protos", "../closed/protos"];
const root = "../../packages/closed/protos";
const [route, name] = value.split(".");
const path = resolve(`${roots[0]}/${route}.ts`);
const path = resolve(`${root}/${route}.ts`);
const program = createProgram([path], {});
const source = program.getSourceFile(path);
@@ -16,7 +16,7 @@ export const getStaticPaths = (async () => {
*
* @see avatars/list.json for all avatar ids.
* @see avatars/[id].webp for avatar images.
* @type avatar.Avatar
* @type blitzkit/avatar.Avatar
*/
export async function GET({ params }: APIContext<never, { id: string }>) {
const avatar = await api.avatar(params.id);
@@ -4,7 +4,7 @@ import { api } from "../../../core/api/dynamic";
* Identical to `avatars/[id].json`, but returns data on all avatars at once,
* mapped by `id`.
*
* @type avatars.Avatars
* @type blitzkit/avatars.Avatars
*/
export async function GET() {
const avatars = await api.avatars();
@@ -3,7 +3,7 @@ import { api } from "../../../core/api/dynamic";
/**
* Returns a list of all avatars ids.
*
* @type avatar_list.AvatarList
* @type blitzkit/avatar_list.AvatarList
*/
export async function GET() {
const list = await api.avatarList();
@@ -0,0 +1,9 @@
import { api } from "../../core/api/dynamic";
/**
* Woah! test.
*/
export async function GET() {
const tiers = await api.tiers();
return Response.json(tiers);
}