mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2024-12-06 19:27:24 +01:00
20 lines
431 B
TypeScript
20 lines
431 B
TypeScript
import * as api from "./base";
|
|
import { UsersResponse } from "./responseTypes";
|
|
|
|
export async function getUsers(
|
|
offset = 0,
|
|
limit = 10,
|
|
sort?: string,
|
|
filters?: { [key: string]: string },
|
|
abortController?: AbortController,
|
|
): Promise<UsersResponse> {
|
|
const { result } = await api.get(
|
|
{
|
|
url: "users",
|
|
params: { limit, offset, sort, expand: "capabilities", ...filters },
|
|
},
|
|
abortController,
|
|
);
|
|
return result;
|
|
}
|