mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 23:43:36 +00:00
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
import * as api from "./base";
|
|
import { CertificateAuthoritiesResponse } from "./responseTypes";
|
|
|
|
export async function getCertificateAuthorities(
|
|
offset = 0,
|
|
limit = 10,
|
|
sort?: string,
|
|
filters?: { [key: string]: string },
|
|
abortController?: AbortController,
|
|
): Promise<CertificateAuthoritiesResponse> {
|
|
const { result } = await api.get(
|
|
{
|
|
url: "certificate-authorities",
|
|
params: { limit, offset, sort, ...filters },
|
|
},
|
|
abortController,
|
|
);
|
|
return result;
|
|
}
|