mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-25 07:03:05 +01:00
feat: proxy avatars
This commit is contained in:
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());
|
||||
}
|
||||
Reference in new issue
Block a user