diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 10:44:30 -0600 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-01-30 10:44:30 -0600 |
| commit | e40f07211f5f15dcb138e2520a76d13afd3c0cfd (patch) | |
| tree | 46bad6a17e66d55a4a65088c0b6eb8c48641615a /frontend/src/api/Api.ts | |
| parent | added prettier for more consistency (diff) | |
| download | lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.tar.gz lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.tar.bz2 lphub-e40f07211f5f15dcb138e2520a76d13afd3c0cfd.zip | |
formatted with prettier
Diffstat (limited to 'frontend/src/api/Api.ts')
| -rw-r--r-- | frontend/src/api/Api.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontend/src/api/Api.ts b/frontend/src/api/Api.ts index 0e1658c..b98dda3 100644 --- a/frontend/src/api/Api.ts +++ b/frontend/src/api/Api.ts | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | import { MapDiscussionContent, ModMenuContent } from "@customTypes/Content"; | 1 | import { MapDiscussionContent, ModMenuContent } from '@customTypes/Content'; |
| 2 | import { delete_token, get_token } from "@api/Auth"; | 2 | import { delete_token, get_token } from '@api/Auth'; |
| 3 | import { get_user, get_profile, post_profile } from "@api/User"; | 3 | import { get_user, get_profile, post_profile } from '@api/User'; |
| 4 | import { | 4 | import { |
| 5 | get_games, | 5 | get_games, |
| 6 | get_chapters, | 6 | get_chapters, |
| 7 | get_games_chapters, | 7 | get_games_chapters, |
| 8 | get_game_maps, | 8 | get_game_maps, |
| 9 | get_search, | 9 | get_search, |
| 10 | } from "@api/Games"; | 10 | } from '@api/Games'; |
| 11 | import { get_official_rankings, get_unofficial_rankings } from "@api/Rankings"; | 11 | import { get_official_rankings, get_unofficial_rankings } from '@api/Rankings'; |
| 12 | import { | 12 | import { |
| 13 | get_map_summary, | 13 | get_map_summary, |
| 14 | get_map_leaderboard, | 14 | get_map_leaderboard, |
| @@ -19,14 +19,14 @@ import { | |||
| 19 | delete_map_discussion, | 19 | delete_map_discussion, |
| 20 | post_record, | 20 | post_record, |
| 21 | delete_map_record, | 21 | delete_map_record, |
| 22 | } from "@api/Maps"; | 22 | } from '@api/Maps'; |
| 23 | import { | 23 | import { |
| 24 | delete_map_summary, | 24 | delete_map_summary, |
| 25 | post_map_summary, | 25 | post_map_summary, |
| 26 | put_map_image, | 26 | put_map_image, |
| 27 | put_map_summary, | 27 | put_map_summary, |
| 28 | } from "@api/Mod"; | 28 | } from '@api/Mod'; |
| 29 | import { UploadRunContent } from "@customTypes/Content"; | 29 | import { UploadRunContent } from '@customTypes/Content'; |
| 30 | 30 | ||
| 31 | // add new api call function entries here | 31 | // add new api call function entries here |
| 32 | // example usage: API.get_games(); | 32 | // example usage: API.get_games(); |
| @@ -91,7 +91,7 @@ export const API = { | |||
| 91 | delete_map_summary(token, map_id, route_id), | 91 | delete_map_summary(token, map_id, route_id), |
| 92 | }; | 92 | }; |
| 93 | 93 | ||
| 94 | const BASE_API_URL: string = "/api/v1/"; | 94 | const BASE_API_URL: string = '/api/v1/'; |
| 95 | 95 | ||
| 96 | export function url(path: string): string { | 96 | export function url(path: string): string { |
| 97 | return BASE_API_URL + path; | 97 | return BASE_API_URL + path; |