[+] Add change name for maimai and refactor settings page

This commit is contained in:
Clansty
2024-07-31 09:03:26 +08:00
parent 836f789fc9
commit b32b0e970c
13 changed files with 248 additions and 65 deletions

View File

@@ -299,7 +299,8 @@ export const GAME = {
post(`/api/v2/game/${game}/user-summary`, { username }),
ranking: (game: GameName): Promise<GenericRanking[]> =>
post(`/api/v2/game/${game}/ranking`, { }),
changeName: (game: GameName, newName: string): Promise<{ newName: string }> =>
post(`/api/v2/game/${game}/change-name`, { newName }),
}
export const DATA = {