Update files
This commit is contained in:
parent
66149df2a5
commit
fea68d4514
|
|
@ -171,6 +171,11 @@ export const followUser = async (userId) => {
|
||||||
return response.data
|
return response.data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const unfollowUser = async (userId) => {
|
||||||
|
const response = await api.delete(`/users/${userId}/follow`)
|
||||||
|
return response.data
|
||||||
|
}
|
||||||
|
|
||||||
export const updateProfile = async (data) => {
|
export const updateProfile = async (data) => {
|
||||||
const response = await api.put('/users/profile', data)
|
const response = await api.put('/users/profile', data)
|
||||||
return response.data
|
return response.data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue