diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-27 22:12:56 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-27 23:13:45 +0400 |
| commit | dd5ea1b1fcbb21c919a16bc70c6507b097c12f6b (patch) | |
| tree | eba2d3b52bc26021ac31d76477e3ac672d1db096 /frontend/src/api/Api.ts | |
| parent | feat/backend: timeline stats endpoint (diff) | |
| download | lphub-dd5ea1b1fcbb21c919a16bc70c6507b097c12f6b.tar.gz lphub-dd5ea1b1fcbb21c919a16bc70c6507b097c12f6b.tar.bz2 lphub-dd5ea1b1fcbb21c919a16bc70c6507b097c12f6b.zip | |
feat/frontend: homepage with timeline and recent scores
Diffstat (limited to 'frontend/src/api/Api.ts')
| -rw-r--r-- | frontend/src/api/Api.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/api/Api.ts b/frontend/src/api/Api.ts index dd5076a..4385f2c 100644 --- a/frontend/src/api/Api.ts +++ b/frontend/src/api/Api.ts | |||
| @@ -5,6 +5,7 @@ import { get_games, get_chapters, get_games_chapters, get_game_maps, get_search | |||
| 5 | import { get_official_rankings, get_unofficial_rankings } from "@api/Rankings"; | 5 | import { get_official_rankings, get_unofficial_rankings } from "@api/Rankings"; |
| 6 | import { get_map_summary, get_map_leaderboard, get_map_discussions, get_map_discussion, post_map_discussion, post_map_discussion_comment, delete_map_discussion, post_record, delete_map_record } from "@api/Maps"; | 6 | import { get_map_summary, get_map_leaderboard, get_map_discussions, get_map_discussion, post_map_discussion, post_map_discussion_comment, delete_map_discussion, post_record, delete_map_record } from "@api/Maps"; |
| 7 | import { delete_map_summary, post_map_summary, put_map_image, put_map_summary } from "@api/Mod"; | 7 | import { delete_map_summary, post_map_summary, put_map_image, put_map_summary } from "@api/Mod"; |
| 8 | import { get_portal_count_history, get_recent_scores } from "@api/Stats"; | ||
| 8 | import { UploadRunContent } from "@customTypes/Content"; | 9 | import { UploadRunContent } from "@customTypes/Content"; |
| 9 | 10 | ||
| 10 | // add new api call function entries here | 11 | // add new api call function entries here |
| @@ -47,6 +48,9 @@ export const API = { | |||
| 47 | put_map_summary: (token: string, map_id: string, content: ModMenuContent) => put_map_summary(token, map_id, content), | 48 | put_map_summary: (token: string, map_id: string, content: ModMenuContent) => put_map_summary(token, map_id, content), |
| 48 | 49 | ||
| 49 | delete_map_summary: (token: string, map_id: string, route_id: number) => delete_map_summary(token, map_id, route_id), | 50 | delete_map_summary: (token: string, map_id: string, route_id: number) => delete_map_summary(token, map_id, route_id), |
| 51 | // Stats | ||
| 52 | get_portal_count_history: () => get_portal_count_history(), | ||
| 53 | get_recent_scores: () => get_recent_scores(), | ||
| 50 | }; | 54 | }; |
| 51 | 55 | ||
| 52 | const BASE_API_URL: string = import.meta.env.DEV | 56 | const BASE_API_URL: string = import.meta.env.DEV |