feat: mode apis

This commit is contained in:
TrèsAbhi committed 2025-12-28 12:20:45 -06:00
1 parent 496e127f64
commit daf4cef61c
3 files changed
+19 -1

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,9 @@
import { api } from "../../../core/api/dynamic";
/**
* List!
*/
export async function GET() {
const list = await api.tankList();
return Response.json(list);
}
@@ -2,7 +2,7 @@ import { api } from "../../../core/api/dynamic";
import { TankList } from "../../../protos/tank_list";
/**
* Literally all the tanks in one place lmao.
* List!!
*/
export async function GET() {
const list = await api.tankList();