diff options
Diffstat (limited to 'frontend/src/api')
| -rw-r--r-- | frontend/src/api/Api.ts | 2 | ||||
| -rw-r--r-- | frontend/src/api/Maps.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/api/Api.ts b/frontend/src/api/Api.ts index 4a3f907..862e688 100644 --- a/frontend/src/api/Api.ts +++ b/frontend/src/api/Api.ts | |||
| @@ -29,7 +29,7 @@ export const API = { | |||
| 29 | get_unofficial_rankings: () => get_unofficial_rankings(), | 29 | get_unofficial_rankings: () => get_unofficial_rankings(), |
| 30 | // Maps | 30 | // Maps |
| 31 | get_map_summary: (map_id: string) => get_map_summary(map_id), | 31 | get_map_summary: (map_id: string) => get_map_summary(map_id), |
| 32 | get_map_leaderboard: (map_id: string) => get_map_leaderboard(map_id), | 32 | get_map_leaderboard: (map_id: string, page: string) => get_map_leaderboard(map_id, page), |
| 33 | get_map_discussions: (map_id: string) => get_map_discussions(map_id), | 33 | get_map_discussions: (map_id: string) => get_map_discussions(map_id), |
| 34 | get_map_discussion: (map_id: string, discussion_id: number) => get_map_discussion(map_id, discussion_id), | 34 | get_map_discussion: (map_id: string, discussion_id: number) => get_map_discussion(map_id, discussion_id), |
| 35 | 35 | ||
diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts index 3832a2e..aa967ce 100644 --- a/frontend/src/api/Maps.ts +++ b/frontend/src/api/Maps.ts | |||
| @@ -8,8 +8,8 @@ export const get_map_summary = async (map_id: string): Promise<MapSummary> => { | |||
| 8 | return response.data.data; | 8 | return response.data.data; |
| 9 | }; | 9 | }; |
| 10 | 10 | ||
| 11 | export const get_map_leaderboard = async (map_id: string): Promise<MapLeaderboard | undefined> => { | 11 | export const get_map_leaderboard = async (map_id: string, page: string): Promise<MapLeaderboard | undefined> => { |
| 12 | const response = await axios.get(url(`maps/${map_id}/leaderboards`)); | 12 | const response = await axios.get(url(`maps/${map_id}/leaderboards?page=${page}`)); |
| 13 | if (!response.data.success) { | 13 | if (!response.data.success) { |
| 14 | return undefined; | 14 | return undefined; |
| 15 | } | 15 | } |