feat, refac: 메인 페이지에서 커맨드 리스트를 동적으로 받아옴

This commit is contained in:
2023-03-01 02:17:09 +09:00
parent e721642a10
commit c5c7f96c1a
6 changed files with 120 additions and 39 deletions
+2 -1
View File
@@ -29,7 +29,7 @@ ExecuteResponse,
GetHistoryResponse,
GetRecentRecordResponse,
} from "./defs/API/Global";
import type { CachedMapResult, GeneralListResponse, ItemTypeKey, MapResult } from "./defs";
import type { CachedMapResult, CommandTableResponse, GeneralListResponse, ItemTypeKey, MapResult } from "./defs";
import type { VoteDetailResult, VoteListResult } from "./defs/API/Vote";
import type { ActiveResourceAuctionList, OpenAuctionResponse, UniqueItemAuctionDetail, UniqueItemAuctionList } from "./defs/API/Auction";
import type { MabilboxListResponse, MsgResponse, MsgType } from "./defs/API/Message";
@@ -130,6 +130,7 @@ const apiRealPath = {
}>,
DieOnPrestart: POST as APICallT<undefined>,
BuildNationCandidate: POST as APICallT<undefined>,
GetCommandTable: GET as APICallT<undefined, CommandTableResponse>,
},
Global: {
GeneralList: GET as APICallT<undefined, GeneralListResponse>,