mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: mode apis
This commit is contained in:
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";
|
import { TankList } from "../../../protos/tank_list";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Literally all the tanks in one place lmao.
|
* List!!
|
||||||
*/
|
*/
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
const list = await api.tankList();
|
const list = await api.tankList();
|
||||||
|
|||||||
Reference in new issue
Block a user