From d9974ede3b3914377beb4b07d78885c48bd74aac Mon Sep 17 00:00:00 2001
From: Wolfboy248 <georgejvindkarlsen@gmail.com>
Date: Fri, 18 Oct 2024 17:01:01 +0200
Subject: refactor: delete run on profile

---
 frontend/src/api/Maps.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'frontend/src/api/Maps.tsx')

diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx
index 6bdc3e6..8295cf2 100644
--- a/frontend/src/api/Maps.tsx
+++ b/frontend/src/api/Maps.tsx
@@ -97,4 +97,13 @@ export const post_record = async (token: string, run: UploadRunContent): Promise
     });
     return response.data.message;
   }
+}
+
+export const delete_map_record = async (token: string, map_id: number, record_id: number): Promise<boolean> => {
+  const response = await axios.delete(url(`maps/${map_id}/record/${record_id}`), {
+    headers: {
+      "Authorization": token,
+    }
+  });
+  return response.data.success;
 };
-- 
cgit v1.2.3

