From df5514ef318804814548c3b51c8c45d7a7c3b6b5 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Mon, 15 Feb 2021 23:28:25 +0800 Subject: [PATCH] Add getUsers() to Auth folder. --- web/src/auth/AuthBackend.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/auth/AuthBackend.js b/web/src/auth/AuthBackend.js index c58df1d0..569a3a80 100644 --- a/web/src/auth/AuthBackend.js +++ b/web/src/auth/AuthBackend.js @@ -57,3 +57,10 @@ export function getApplication(owner, name) { credentials: "include" }).then(res => res.json()); } + +export function getUsers(owner) { + return fetch(`${authConfig.serverUrl}/api/get-users?owner=${owner}`, { + method: "GET", + credentials: "include" + }).then(res => res.json()); +}