Leaderboard Rough Draft

This commit is contained in:
Galexion
2024-02-29 00:55:46 -05:00
parent afe28733db
commit 5ff79f5ee1
4 changed files with 53 additions and 1 deletions

View File

@@ -62,6 +62,16 @@ export interface GenericGamePlaylog {
beforeRating: number
}
export interface GenericRanking {
name: string
rank: number
accuracy: number
rating: number
fullCombo: number
allPerfect: number
lastSeen: string
}
export interface RankCount {
name: string
count: number

View File

@@ -119,6 +119,9 @@ export const GAME = {
post(`/api/v2/game/${game}/trend`, { username }),
userSummary: (username: string, game: GameName): Promise<GenericGameSummary> =>
post(`/api/v2/game/${game}/user-summary`, { username }),
ranking: (game: GameName): Promise<GenericGameSummary> =>
post(`/api/v2/game/${game}/ranking`, { }),
}
export const DATA = {