[+] Import player data, tested with maimai

This commit is contained in:
Clansty
2024-08-01 08:41:11 +08:00
parent 7c4f887ef4
commit a71c2bd8ec
5 changed files with 177 additions and 0 deletions

View File

@@ -303,6 +303,8 @@ export const GAME = {
post(`/api/v2/game/${game}/change-name`, { newName }),
export: (game: GameName): Promise<Record<string, any>> =>
post(`/api/v2/game/${game}/export`),
import: (game: GameName, data: any): Promise<Record<string, any>> =>
post(`/api/v2/game/${game}/import`, {}, { body: JSON.stringify(data) }),
}
export const DATA = {