From 21703d6574f1a43dd03d20c3ddf0ec237501da8f Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 18 Mar 2018 23:11:53 +0200 Subject: [PATCH] add getBlocked endpoint to api --- web/app/common/api.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/app/common/api.js b/web/app/common/api.js index 24b47fe4..a6922633 100644 --- a/web/app/common/api.js +++ b/web/app/common/api.js @@ -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, };