aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Maps.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/api/Maps.ts')
-rw-r--r--frontend/src/api/Maps.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts
index 8d29f84..7cbd70c 100644
--- a/frontend/src/api/Maps.ts
+++ b/frontend/src/api/Maps.ts
@@ -4,7 +4,7 @@ import { MapDiscussionContent, UploadRunContent } from "@customTypes/Content";
4import { MapSummary, MapLeaderboard, MapDiscussions, MapDiscussion } from "@customTypes/Map"; 4import { MapSummary, MapLeaderboard, MapDiscussions, MapDiscussion } from "@customTypes/Map";
5 5
6export const get_map_summary = async (map_id: string): Promise<MapSummary> => { 6export const get_map_summary = async (map_id: string): Promise<MapSummary> => {
7 const response = await axios.get(url(`maps/${map_id}/summary`)) 7 const response = await axios.get(url(`maps/${map_id}/summary`));
8 return response.data.data; 8 return response.data.data;
9}; 9};
10 10
@@ -94,7 +94,7 @@ export const post_record = async (token: string, run: UploadRunContent, map_id:
94 }); 94 });
95 return [response.data.success, response.data.message]; 95 return [response.data.success, response.data.message];
96 } 96 }
97} 97};
98 98
99export const delete_map_record = async (token: string, map_id: number, record_id: number): Promise<boolean> => { 99export const delete_map_record = async (token: string, map_id: number, record_id: number): Promise<boolean> => {
100 const response = await axios.delete(url(`maps/${map_id}/record/${record_id}`), { 100 const response = await axios.delete(url(`maps/${map_id}/record/${record_id}`), {