Add getUsers() to Auth folder.

This commit is contained in:
Yang Luo 2021-02-15 23:28:25 +08:00
parent 60ad52f7ae
commit df5514ef31

View File

@ -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());
}