aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/api/Api.ts')
-rw-r--r--frontend/src/api/Api.ts18
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 @@
1import { MapDiscussionContent, ModMenuContent } from "@customTypes/Content"; 1import { MapDiscussionContent, ModMenuContent } from '@customTypes/Content';
2import { delete_token, get_token } from "@api/Auth"; 2import { delete_token, get_token } from '@api/Auth';
3import { get_user, get_profile, post_profile } from "@api/User"; 3import { get_user, get_profile, post_profile } from '@api/User';
4import { 4import {
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';
11import { get_official_rankings, get_unofficial_rankings } from "@api/Rankings"; 11import { get_official_rankings, get_unofficial_rankings } from '@api/Rankings';
12import { 12import {
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';
23import { 23import {
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';
29import { UploadRunContent } from "@customTypes/Content"; 29import { 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
94const BASE_API_URL: string = "/api/v1/"; 94const BASE_API_URL: string = '/api/v1/';
95 95
96export function url(path: string): string { 96export function url(path: string): string {
97 return BASE_API_URL + path; 97 return BASE_API_URL + path;