Add all_following endpoint.

This commit is contained in:
Roger Braun 2017-02-13 22:55:38 +01:00
parent 038798f3f4
commit f9b3f8df84
2 changed files with 14 additions and 1 deletions

View file

@ -17,6 +17,10 @@ const backendInteractorService = (credentials) => {
return apiService.fetchFriends({credentials})
}
const fetchAllFollowing = ({username}) => {
return apiService.fetchAllFollowing({username, credentials})
}
const followUser = (id) => {
return apiService.followUser({credentials, id})
}
@ -32,6 +36,7 @@ const backendInteractorService = (credentials) => {
fetchFriends,
followUser,
unfollowUser,
fetchAllFollowing,
verifyCredentials: apiService.verifyCredentials
}