add getBlocked endpoint to api

This commit is contained in:
igoradamenko
2018-03-18 23:11:53 +02:00
parent a3ad78fa75
commit 21703d6574
+6
View File
@@ -68,6 +68,11 @@ export const unblockUser = ({ id }) => fetcher.put({
withCredentials: true,
});
export const getBlocked = () => fetcher.get({
url: '/admin/blocked',
withCredentials: true,
});
export default {
logOut,
getConfig,
@@ -84,4 +89,5 @@ export default {
remove,
blockUser,
unblockUser,
getBlocked,
};