mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Add getUsers() to Auth folder.
This commit is contained in:
parent
60ad52f7ae
commit
df5514ef31
@ -57,3 +57,10 @@ export function getApplication(owner, name) {
|
|||||||
credentials: "include"
|
credentials: "include"
|
||||||
}).then(res => res.json());
|
}).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());
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user