From fea68d45145b3b2743f6486cd4a732ea293cbd49 Mon Sep 17 00:00:00 2001 From: glpshchn <464976@niuitmo.ru> Date: Thu, 4 Dec 2025 23:04:03 +0300 Subject: [PATCH] Update files --- frontend/src/utils/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/utils/api.js b/frontend/src/utils/api.js index ca674b1..ef198b3 100644 --- a/frontend/src/utils/api.js +++ b/frontend/src/utils/api.js @@ -171,6 +171,11 @@ export const followUser = async (userId) => { return response.data } +export const unfollowUser = async (userId) => { + const response = await api.delete(`/users/${userId}/follow`) + return response.data +} + export const updateProfile = async (data) => { const response = await api.put('/users/profile', data) return response.data