feat: proxy avatars

This commit is contained in:
TrèsAbhi committed 2026-01-02 20:04:19 -06:00
1 parent 4b8e73fa57
commit 437bee4a85
9 files changed
+47 -65

No files matched your search

@@ -0,0 +1,9 @@
import { api } from "../../../core/api/dynamic";
/**
* Literally all the tanks in one place lmao.
*/
export async function GET() {
const tanks = await api.tanks();
return Response.json(tanks);
}
@@ -0,0 +1,10 @@
import { api } from "../../../core/api/dynamic";
import { Tanks } from "../../../protos/tanks";
/**
* Literally all the tanks in one place lmao.
*/
export async function GET() {
const tanks = await api.tanks();
return new Response(Tanks.encode(tanks).finish());
}