From 5484abefebb0464158e872be7bbf44a2b1ac3aed Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 13 Mar 2021 14:07:19 +0100 Subject: remove request/friend works now --- components/notificationsArea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/notificationsArea.tsx b/components/notificationsArea.tsx index ab29f9c..86b90b7 100644 --- a/components/notificationsArea.tsx +++ b/components/notificationsArea.tsx @@ -89,7 +89,7 @@ function FriendRequest(props: { return !gone && { axios.request({ method: "post", - url: `/api/social/accept`, + url: "/api/social/accept", headers: {"content-type": "application/json"}, data: { "id": props.user?.id } }) @@ -97,7 +97,7 @@ function FriendRequest(props: { }} onDeny={() => { axios.request({ method: "post", - url: `/api/social/remove`, + url: "/api/social/remove", headers: {"content-type": "application/json"}, data: { "id": props.user?.id } }) -- cgit v1.2.3