mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
import * as api from "./base";
|
|
import { AccessListsResponse } from "./responseTypes";
|
|
|
|
export async function getAccessLists(
|
|
offset = 0,
|
|
limit = 10,
|
|
sort?: string,
|
|
filters?: { [key: string]: string },
|
|
abortController?: AbortController,
|
|
): Promise<AccessListsResponse> {
|
|
const { result } = await api.get(
|
|
{
|
|
url: "access-lists",
|
|
params: { limit, offset, sort, ...filters },
|
|
},
|
|
abortController,
|
|
);
|
|
return result;
|
|
}
|