mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: implement tank list on client
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
3a38441d42
commit
932c414b0c
1 file changed
+3
-2
@@ -3,14 +3,15 @@ import type { Strings } from "@blitzkit/i18n";
|
||||
import { Avatars } from "@protos/blitzkit/avatars";
|
||||
import { PopularTanks } from "@protos/blitzkit/popular_tanks";
|
||||
import { Tank } from "@protos/blitzkit/tank";
|
||||
import { TankList } from "@protos/blitzkit/tank_list";
|
||||
import { AbstractAPI, Cache } from "./abstract";
|
||||
|
||||
const rejected = Promise.reject("Not implemented on client");
|
||||
|
||||
export class ClientAPI extends AbstractAPI {
|
||||
@UnimplementedOnClient
|
||||
@Cache()
|
||||
tankList() {
|
||||
return rejected;
|
||||
return fetchPB("/api/tanks/list.pb", TankList);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
|
||||
Reference in new issue
Block a user